gecko-dev/docshell/base
Masayuki Nakano 9c349ade9b Bug 1487591 - Make Selection treat AccessibleCaretEventHub as concrete class rather than nsISelectionListener r=smaug
AccessibleCaretEventHub is an nsISelectionListener of Selection whose type is
"normal".  This is added only when nsFrameSelection::Init() is called and
accessible caret is enabled.  Additionally, nsFrameSelection::Init() is
always called immediately after creating nsFrameSelection.

Therefore, when AccessibleCaretEventHub is installed to Selection, this is
always second selection listener and won't be installed multiple times.  So,
Selection can store pointer of AccessibleCaretEventHub directly only when
it's enabled and the Selection needs to notify it of selection change.

This patch makes Selection stores AccessibleCaretEventHub with RefPtr, then,
makes Selection::NotifySelectionListeners() call its OnSelectionChange()
immediately after AutoCopyListener.

Unfortunately, this patch includes making of MOZ_CAN_RUN_SCRIPT_BOUNDARY and
MOZ_CAN_RUN_SCRIPT a lot since some methods of AccessibleCaretEventHub are
marked as MOZ_CAN_RUN_SCRIPT and including AccessibleCaretEventHub.h into
Selection.h causes compile the compile errors.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 21:19:44 +00:00
..
crashtests Bug 443655 - Add crashtest. r=me 2017-10-18 09:43:10 -04:00
timeline Bug 1475559 part 2 - Rename JS::IsSavedFrame to JS::IsMaybeWrappedSavedFrame and do some minor cleanup. r=bz 2018-07-21 14:32:25 +02:00
BrowsingContext.cpp Bug 1481238 - Create WebIDL interface for BrowsingContext. r=peterv 2018-08-29 05:00:00 +03:00
BrowsingContext.h Bug 1481238 - Create WebIDL interface for BrowsingContext. r=peterv 2018-08-29 05:00:00 +03:00
IHistory.h Bug 1463132 - New autofill threshold doesn't work well with redirects. r=adw 2018-05-23 16:49:06 +02:00
LoadContext.cpp Bug 1455674 part 13. Remove remaining xpidl uses of nsIDOMElement. r=qdot 2018-04-26 23:37:29 -04:00
LoadContext.h
moz.build Bug 1480641 - Remove nsITextScroll; r=nika 2018-08-07 17:28:16 -07:00
nsAboutRedirector.cpp Bug 1462702 - Add about:crashparent and about:crashcontent r=ehsan 2018-05-18 17:12:43 -05:00
nsAboutRedirector.h
nsCDefaultURIFixup.idl
nsCTooltipTextProvider.h
nsDefaultURIFixup.cpp Bug 1435319, r=valentin 2018-06-13 08:15:40 -07:00
nsDefaultURIFixup.h Bug 1433958 - Change code that sets nsIURI.host to use nsIURIMutator r=mayhemer 2018-02-26 20:43:47 +01:00
nsDocShell.cpp Bug 1486772 - Refactor the screen-orientation types and headers r=smaug 2018-08-29 20:54:56 +00:00
nsDocShell.h Bug 1487591 - Make Selection treat AccessibleCaretEventHub as concrete class rather than nsISelectionListener r=smaug 2018-08-31 21:19:44 +00:00
nsDocShellEditorData.cpp Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz 2018-05-11 19:46:15 +02:00
nsDocShellEditorData.h
nsDocShellEnumerator.cpp Bug 1484496: Part 2 - Add common base class for all nsISimpleEnumerator implementations. r=froydnj 2018-08-18 14:22:47 -07:00
nsDocShellEnumerator.h Bug 1484496: Part 4b - Add intrinsic type information to most nsSimpleEnumerators. r=froydnj 2018-08-18 21:06:32 -07:00
nsDocShellLoadInfo.cpp Bug 1468523 - Fix the history entry for http-equiv=refresh. r=smaug 2018-07-26 15:31:59 +03:00
nsDocShellLoadInfo.h Bug 1468523 - Fix the history entry for http-equiv=refresh. r=smaug 2018-07-26 15:31:59 +03:00
nsDocShellLoadTypes.h Bug 1472087 - Remove nsDocShellLoadInfo::LoadTypes; r=nika 2018-07-11 20:19:18 -07:00
nsDocShellTreeOwner.cpp Bug 1482665 Part 2 - Remove nsPresContext::AppUnitsPerCSSPixel() and replace it with mozilla::AppUnitsPerCSSPixel(). r=dholbert 2018-08-13 14:29:28 -07:00
nsDocShellTreeOwner.h Bug 1468872 - remove unused nsICDocShellTreeOwner class; r=smaug 2018-06-14 19:18:47 -04:00
nsDSURIContentListener.cpp Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj 2018-04-28 12:50:58 -07:00
nsDSURIContentListener.h Bug 1412824: Refactor MaybeCloseWindow and allow to reuse the window close code from within nsExternalHelperAppService as well as nsDSURIContentListener. r=smaug 2017-11-03 13:23:25 +01:00
nsIContentViewer.idl Bug 1455676 part 6. Remove nsIDOMNode usage from docshell/. r=qdot 2018-05-29 22:58:48 -04: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 1481238 - Create WebIDL interface for BrowsingContext. r=peterv 2018-08-29 05:00:00 +03:00
nsIDocShellTreeItem.idl Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures 2018-07-29 03:55:23 +03:00
nsIDocShellTreeOwner.idl
nsIDocumentLoaderFactory.idl
nsILinkHandler.h Bug 1434553 - Implement nsIInputStreamLength and nsIAsyncInputStreamLength - part 9 - necko and docShell, r=mayhemer, r=smaug 2018-05-23 07:12:36 +02:00
nsILoadContext.idl Bug 1455674 part 13. Remove remaining xpidl uses of nsIDOMElement. r=qdot 2018-04-26 23:37:29 -04:00
nsIPrivacyTransitionObserver.idl
nsIReflowObserver.idl
nsIRefreshURI.idl Bug 1416307 - Set triggeringPrincipal to current document's principal, if aPrincipal is not given. r=bz 2018-02-06 13:28:30 -05:00
nsIScrollable.idl
nsIScrollObserver.h Bug 1293362 - Part 4: Generate runtime bindings for calling xpcom methods from rust, r=froydnj 2018-01-23 17:27:26 -05:00
nsITooltipListener.idl
nsITooltipTextProvider.idl Bug 1455676 part 6. Remove nsIDOMNode usage from docshell/. r=qdot 2018-05-29 22:58:48 -04:00
nsIURIFixup.idl
nsIWebNavigation.idl Bug 1486356 - Remove nsIWebNavigation.LOAD_FLAGS_DISALLOW_INHERIT_OWNER. r=nika 2018-08-27 14:27:35 +10:00
nsIWebNavigationInfo.idl
nsIWebPageDescriptor.idl
nsPingListener.cpp Bug 1328695 - Use protocol flags to determine if a URI is potentially trustworthy r=ckerschb, r=dveditz, r=mcmanus, r=bz 2018-05-31 07:51:42 +02:00
nsPingListener.h Bug 1406161 - Part 4: Move nsPingListener and nsRefreshTimer to separate files. r=smaug 2017-12-18 20:19:36 -06:00
nsRefreshTimer.cpp Bug 1437604 - remove NS_INTERFACE_MAP_END_THREADSAFE; r=mystor 2018-02-12 14:36:46 -05:00
nsRefreshTimer.h Bug 1406161 - Part 4: Move nsPingListener and nsRefreshTimer to separate files. r=smaug 2017-12-18 20:19:36 -06:00
nsWebNavigationInfo.cpp Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj 2018-04-28 12:50:58 -07:00
nsWebNavigationInfo.h
SerializedLoadContext.cpp Bug 1453795 - docshell - Initialize member fields in classes/ structures. r=smaug 2018-06-18 10:23:57 +03:00
SerializedLoadContext.h