gecko-dev/dom
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
..
abort Bug 1478101 - Split AbortSignal in 2 classes: AbortSignal and AbortSignalImpl, r=bz 2018-08-26 14:16:21 +02:00
animation Bug 1467344 - Move tests from dom/animations/tests/css-transitions to WPT; r=hiro 2018-08-16 14:41:04 +09:00
asmjscache Bug 1471018 - Speed-up AsmJSCache shutdown by setting the shutdown requested flag; r=asuth 2018-08-14 08:22:43 +02:00
audiochannel Bug 1481645 - Remove some redundant uses of do_QueryInterface. r=bzbarsky 2018-08-13 09:05:19 +00:00
base Bug 1487591 - Make Selection treat AccessibleCaretEventHub as concrete class rather than nsISelectionListener r=smaug 2018-08-31 21:19:44 +00:00
battery Bug 1482753 - Move battery/Types.h into hal/ and BatteryObserver into hal namespace. r=gsvelto 2018-08-13 10:57:50 +09:00
bindings Bug 1481927. Always pass an object from the "relevant global" to Web IDL APIs that have a non-wrapper-cached "this". r=bholley 2018-08-29 03:03:46 +00:00
broadcastchannel Bug 1480780 - Merge the privacy.3rdpartystorage.enabled pref with the network.cookie.cookieBehavior pref; r=ehsan 2018-08-13 16:01:16 -04:00
browser-element Bug 1259822 - Show property key in the error message when target object value is null or undefined. r=jorendorff 2018-08-24 13:22:13 +09:00
cache Bug 1361330 - Part 1: Make quota stream constructors public and move the Create() helpers outside of the stream classes; r=asuth 2018-08-20 14:32:33 +02:00
canvas Bug 1486318 - Actually apply transform from canvas pattern when drawing text to a canvas. r=lsalzman 2018-08-30 09:09:06 -04:00
chrome-webidl Bug 1481238 - Create WebIDL interface for BrowsingContext. r=peterv 2018-08-29 05:00:00 +03:00
clients Bug 1486772 - Refactor the screen-orientation types and headers r=smaug 2018-08-29 20:54:56 +00:00
commandhandler Bug 1484496: Part 4b - Add intrinsic type information to most nsSimpleEnumerators. r=froydnj 2018-08-18 21:06:32 -07:00
console Bug 1484466: Part 2a - Remove no-op generateCI calls. r=mccr8 2018-08-18 12:38:31 -07:00
credentialmanagement
crypto Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium 2018-08-28 15:56:01 +10:00
encoding Bug 1481927. Always pass an object from the "relevant global" to Web IDL APIs that have a non-wrapper-cached "this". r=bholley 2018-08-29 03:03:46 +00:00
events Bug 1457218 - Part 3 - Remove the "menu-button" binding. r=surkov,bgrins 2018-08-29 14:04:25 +01:00
fetch Bug 1478101 - Split AbortSignal in 2 classes: AbortSignal and AbortSignalImpl, r=bz 2018-08-26 14:16:21 +02:00
file Bug 1486900 - IPCBlobInputStreamChild should be able to shutdown before receiving the remote stream, r=smaug 2018-08-29 11:10:57 +02:00
filehandle Bug 1361330 - Part 2: Move MemoryOutputStream to a generic place; r=asuth 2018-08-20 14:32:48 +02:00
filesystem
flex Bug 1477856: In flexbox devtools API, report max-width:none as +infinity. r=bradwerth 2018-07-27 21:38:46 +00:00
gamepad Bug 1487079 - Fix hasOrientation and hasPosition are switched on WebVR GamepadPose r=qdot,kip 2018-08-29 22:09:48 +00:00
geolocation
grid
html Bug 1453862 - Log to web console when autoplay blocked. r=flod,baku 2018-08-29 16:51:24 +00:00
imptests
indexedDB Bug 1361330 - Part 3: Use fully qualified name when declaring ref counting for IDB quota client; r=asuth 2018-08-20 14:32:56 +02:00
interfaces Bug 1486674 - get rid of nsIDOMXULCheckboxElement, r=smaug 2018-08-30 08:17:11 +08:00
ipc Bug 1486772 - Refactor the screen-orientation types and headers r=smaug 2018-08-29 20:54:56 +00:00
jsurl
locales Bug 1453862 - Log to web console when autoplay blocked. r=flod,baku 2018-08-29 16:51:24 +00:00
manifest
mathml Bug 1481601 - Remove now-useless aPreallocateChildren from nsINode::Clone() and friends. r=bzbarsky 2018-08-08 23:58:44 +00:00
media Bug 1483338: Stop using level as the identifier for media transports. r=mjf 2018-08-28 19:45:58 +00:00
messagechannel Bug 1450167. Stop using atom-or-string for event names in the listener manager. r=smaug 2018-07-24 18:15:19 -04:00
midi Bug 1450167. Stop using atom-or-string for event names in the listener manager. r=smaug 2018-07-24 18:15:19 -04:00
network Bug 1482753 - Move network/Types.h into hal/ and NetworkObserver into hal namespace. r=gsvelto 2018-08-13 10:57:50 +09:00
notification Bug 1452743. Stop using the no-arg DOMEventTargetHelper constructor from Notification. r=smaug 2018-07-24 18:15:22 -04:00
offline Bug 1402247 - Use encoding_rs for XPCOM string encoding conversions. r=Nika,erahm,froydnj. 2018-08-14 14:43:42 +03:00
payments Bug 1483470 - Improve the test case for responding a closed PaymentRequest. r=baku 2018-08-24 11:28:50 +02:00
performance Bug 1481195 - The current document should have access to its PerformanceTimingData, r=valentin 2018-08-06 21:27:00 +02:00
permission Bug 1278831 - PermissionStatus must keep itself alive when it has a event listener, r=smaug 2018-08-01 00:19:12 +02:00
plugins Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium 2018-08-28 15:56:01 +10:00
power Bug 1482753 - Move power/Types.h into hal/ and WakeLockObserver into hal namespace. r=gsvelto 2018-08-13 10:57:50 +09:00
presentation bug 1485087 - remove the option to use the TLS session cache from nsITLSServerSocket r=jryans,mayhemer 2018-08-24 16:00:34 +00:00
prio Backed out 6 changesets (bug 1421501) for bustages on security/nss/lib/freebl/mpi/mp_comba.c on a CLOSED TREE 2018-08-23 17:13:42 +03:00
promise Bug 1486130: Follow-up: Ignore extra console message on OS-X. r=bustage,test-only 2018-08-28 11:21:57 -07:00
push Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium 2018-08-28 15:56:01 +10:00
quota Bug 1485971 - Followup for enabling test on Beta and Release for bug 1482812; r=janv 2018-08-24 15:16:26 +02:00
res
script Bug 1486577 - Don't #include "js/CompilationAndEvaluation.h" in jsapi.h, minimizing the scope of that header and reducing translation-unit size of anything that needs JSAPI but doesn't need to compile/evaluate JavaScript. r=jandem 2018-08-24 22:51:49 -05:00
security Bug 1475448 - Add ContentSecurityPolicyParser fuzzing target. r=ckerschb, sr=decoder 2018-08-24 08:30:24 +00:00
serviceworkers Bug 1472303 - Backed out changeset 8a40d04dfcbb. r=asuth 2018-08-24 10:24:28 -04:00
simpledb Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium 2018-08-28 15:56:01 +10:00
smil Bug 1486488 - Don't assume that SVGAnimationElement has a parent on bind. r=dholbert 2018-08-28 09:06:08 +00:00
storage Bug 1475218 - Disable PBackgroundLocalStorageCache on Android; r=asuth 2018-08-21 17:27:42 +02:00
svg Bug 1486488 - Don't assume that SVGAnimationElement has a parent on bind. r=dholbert 2018-08-28 09:06:08 +00:00
system Bug 1479354 - Null-check this.listener when reporting cached geolocation values r=jdm 2018-07-31 20:23:24 +07:00
tests Backed out changeset 96b5a88ac004 (bug 1486824) for causing frequent failures e.g: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js a=backout 2018-08-31 12:17:27 +03:00
u2f Bug 1259822 - Show property key in the error message when target object value is null or undefined. r=jorendorff 2018-08-24 13:22:13 +09:00
url Bug 1481719 - Disable profile-instr-out-of-date warnings explicitly rather than allowing all warnings where they appear. r=dmajor 2018-08-09 06:07:33 +09:00
vr Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert 2018-08-09 20:10:21 +00:00
webauthn Bug 1480365: WebAuthManager doesn't need to keep alive AbortSignal, r=smaug 2018-08-06 21:01:53 +02:00
webbrowserpersist Bug 1402247 - Use encoding_rs for XPCOM string encoding conversions. r=Nika,erahm,froydnj. 2018-08-14 14:43:42 +03:00
webgpu
webidl Bug 1486297 - Add a pref for Pointer Lock API so that user can disable it. r=smaug! 2018-08-30 22:55:31 +00:00
websocket Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
workers Bug 1486092 - Part 2: Make the reject tracker cookie behavior also depend on the browser.contentblocking.enabled pref; r=baku 2018-08-27 09:22:01 -04:00
worklet Bug 1486577 - Don't #include "js/CompilationAndEvaluation.h" in jsapi.h, minimizing the scope of that header and reducing translation-unit size of anything that needs JSAPI but doesn't need to compile/evaluate JavaScript. r=jandem 2018-08-24 22:51:49 -05:00
xbl Bug 1486690 - Rename NS_str{,}dup and remove unnecessary checks after calls to them. r=glandium 2018-08-28 15:58:54 +10:00
xhr Bug 1484990 - Use BulkWrite instead of write past length via BeginWriting() in XHR. r=baku 2018-08-30 14:24:58 +00:00
xml Bug 1481601 - Remove now-useless aPreallocateChildren from nsINode::Clone() and friends. r=bzbarsky 2018-08-08 23:58:44 +00:00
xslt Bug 1486690 - Remove an unnecessary NS_FREE_XPCOM_ISUPPORTS_POINTER_ARRAY call. r=glandium 2018-08-28 16:00:05 +10:00
xul Bug 1487476 - Expose lightweight themes as chrome-only features on nsIDocument instead of XULDocument;r=smaug 2018-08-30 23:17:58 +00:00
jar.mn
moz.build bug 1485946 - skip building libprio on MSVC r=froydnj 2018-08-27 20:07:51 +00:00