gecko-dev/docshell/base
Masayuki Nakano 3e64f2c30d Bug 1539356 - Mark EditorBase::InsertNodeTransaction() as MOZ_CAN_RUN_SCRIPT r=m_kato
This patch marks `EditorBase::InsertNodeTransaction()` **and** its callers as `MOZ_CAN_RUN_SCRIPT`.

Unfortunately, this patch tells us that some `GetSomething()` methods may destroy the editor since `HTMLEditRules::GetNodesForOperation()`, `HTMLEditRules::GetNodesFromPoint()` and `HTMLEditRules::GetNodesFromSelection()` may change the DOM tree.  Additionally, initialization methods may destroy the editor since it may insert a bogus `<br>` node.

Note that this patch also removes some unused methods. I.e., they are not result of some cleaning up the code. This patch just avoids marking unused methods as `MOZ_CAN_RUN_SCRIPT`.

Differential Revision: https://phabricator.services.mozilla.com/D25027

--HG--
extra : moz-landing-system : lando
2019-03-30 11:55:29 +00:00
..
crashtests
timeline Bug 1513059 - Use the minimal XPCOM for the socket process.r=froydnj 2019-01-16 23:05:11 +00:00
BrowsingContext.cpp Backed out 4 changesets (bug 1525427) for failing at /browser_browsingContext-embedder.js on a CLOSED TREE. 2019-03-28 20:54:28 +02:00
BrowsingContext.h Backed out 4 changesets (bug 1525427) for failing at /browser_browsingContext-embedder.js on a CLOSED TREE. 2019-03-28 20:54:28 +02:00
BrowsingContextFieldList.h Bug 1539069 - Part 1: Allow BC fields to be racy, and not have ProcessID validated, r=farre 2019-03-27 13:46:01 +00:00
BrowsingContextGroup.cpp Bug 1532661 - Part 4: Support initializing complete BrowsingContextGroups in a single op with an IPCInitializer struct, r=farre 2019-03-14 18:51:09 +00:00
BrowsingContextGroup.h Bug 1532661 - Part 4: Support initializing complete BrowsingContextGroups in a single op with an IPCInitializer struct, r=farre 2019-03-14 18:51:09 +00:00
CanonicalBrowsingContext.cpp Backed out 4 changesets (bug 1525427) for failing at /browser_browsingContext-embedder.js on a CLOSED TREE. 2019-03-28 20:54:28 +02:00
CanonicalBrowsingContext.h Backed out 4 changesets (bug 1525427) for failing at /browser_browsingContext-embedder.js on a CLOSED TREE. 2019-03-28 20:54:28 +02:00
ChildProcessChannelListener.cpp Bug 1467223 - Part 4: Add support for piping redirected channels through nsDocShell's loading functions, r=qdot 2019-01-23 21:07:08 +00:00
ChildProcessChannelListener.h Bug 1467223 - Part 4: Add support for piping redirected channels through nsDocShell's loading functions, r=qdot 2019-01-23 21:07:08 +00:00
IHistory.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
LoadContext.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
LoadContext.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
SerializedLoadContext.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
SerializedLoadContext.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
moz.build Bug 1532661 - Part 2: Use a field list macro header for synced fields, r=farre 2019-03-14 18:51:05 +00:00
nsAboutRedirector.cpp Bug 1524992 - Don't trigger crash in about:crash* when opened from external apps r=mconley 2019-03-12 20:16:07 +00:00
nsAboutRedirector.h Bug 1478124: Part 8b - Update DocShell module to use a static component manifest. r=bzbarsky 2018-12-16 17:27:58 -08:00
nsCTooltipTextProvider.h
nsDSURIContentListener.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
nsDSURIContentListener.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsDefaultURIFixup.cpp Bug 1532727 - replace OptionalURIParams with URIParams? in IPDL; r=froydnj 2019-03-06 14:05:50 +00:00
nsDefaultURIFixup.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsDocShell.cpp Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
nsDocShell.h Bug 1536405 - Cycle-collect through ChromeEventHandler, r=bzbarsky 2019-03-22 23:35:15 +00:00
nsDocShellEditorData.cpp Bug 1539356 - Mark EditorBase::InsertNodeTransaction() as MOZ_CAN_RUN_SCRIPT r=m_kato 2019-03-30 11:55:29 +00:00
nsDocShellEditorData.h Bug 1539356 - Mark EditorBase::InsertNodeTransaction() as MOZ_CAN_RUN_SCRIPT r=m_kato 2019-03-30 11:55:29 +00:00
nsDocShellEnumerator.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsDocShellEnumerator.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsDocShellLoadState.cpp Bug 1528695 - Part 1 : Use referrerInfo in openWindow, cpp file r=smaug 2019-03-15 05:11:43 +00:00
nsDocShellLoadState.h Bug 1518454: Part 1, backend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=bz 2019-02-21 16:00:32 +01:00
nsDocShellLoadTypes.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
nsDocShellTreeOwner.cpp Bug 1518454: Part 1, backend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=bz 2019-02-21 16:00:32 +01:00
nsDocShellTreeOwner.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsIContentViewer.idl Bug 1531173 - Drop nsIContentViewer.scrollToNode. r=emilio 2019-02-28 01:31:47 +00:00
nsIContentViewerEdit.idl Bug 1455676 part 6. Remove nsIDOMNode usage from docshell/. r=qdot 2018-05-29 22:58:48 -04:00
nsIDocShell.idl Bug 1524065 - part1 : implement the way to resume delayed autoplay media via browsing context. r=farre 2019-03-20 03:15:36 +00:00
nsIDocShellTreeItem.idl Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
nsIDocShellTreeOwner.idl
nsIDocumentLoaderFactory.idl Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
nsILinkHandler.h Bug 1518454: Part 1, backend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=bz 2019-02-21 16:00:32 +01:00
nsILoadContext.idl Bug 1497598. Stop using GetCurrentJSContext in loadcontext code. r=mccr8 2018-10-09 18:28:17 +00:00
nsILoadURIDelegate.idl Bug 1515789 - Ensure nsILoadURIDelegate::loadURI() is only called for toplevel redirects. r=smaug,geckoview-reviewers,esawin 2019-01-28 15:35:17 +00:00
nsIPrivacyTransitionObserver.idl
nsIReflowObserver.idl
nsIRefreshURI.idl
nsIScrollObserver.h Bug 1533617 part 4. Mark virtual methods with CAN_RUN_SCRIPT overrides as CAN_RUN_SCRIPT. r=nika 2019-03-11 14:20:29 +00:00
nsIScrollable.idl
nsITooltipListener.idl Bug 1489095 - Change nsITooltipListener to use XPCOM strings. r=hsivonen 2019-01-14 14:06:07 +00:00
nsITooltipTextProvider.idl Bug 1455676 part 6. Remove nsIDOMNode usage from docshell/. r=qdot 2018-05-29 22:58:48 -04:00
nsIURIFixup.idl Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8 2019-02-28 01:09:48 +00:00
nsIWebNavigation.idl Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot 2019-02-15 19:49:11 +00:00
nsIWebNavigationInfo.idl
nsIWebPageDescriptor.idl
nsPingListener.cpp Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan 2019-03-25 12:47:57 +00:00
nsPingListener.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsRefreshTimer.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsRefreshTimer.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsWebNavigationInfo.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsWebNavigationInfo.h Bug 1478124: Part 8b - Update DocShell module to use a static component manifest. r=bzbarsky 2018-12-16 17:27:58 -08:00