gecko-dev/dom
Masayuki Nakano 7702dedeb1 Bug 1669342 - part 3: Rewrite `AssertIfMismatchRootAndRangeBoundaries()` r=smaug
The method unexpectedly assert when the given range is in native anonymous
subtree and the range is disconnected from the subtree.

This is caused by that `RangeUtils::ComputeRootNode()` returns parent element
of the native anonymous subtree root when the range is connected.  However,
otherwise, it returns the subtree root which is a content node.

Therefore, they are what we should check when updating a range is,
* Given range boundaries are in same subtree at least.
* Given range's computed root node should be same as given root node except
when the range is in a native anonymous subtree and disconnected from the
subtree.

This change fixes the following new permanent oranges caused by the previous
patch:
* browser/components/places/tests/browser/browser_sidebarpanels_click.js
* browser/base/content/test/keyboard/browser_toolbarKeyNav.js
* devtools/client/inspector/test/browser_inspector_breadcrumbs_visibility.js
* layout/base/tests/marionette/test_accessiblecaret_cursor_mode.py

Differential Revision: https://phabricator.services.mozilla.com/D108399
2021-03-16 21:43:40 +00:00
..
abort Bug 1698468 - Add AbortSignal.abort() r=smaug 2021-03-15 20:46:53 +00:00
animation Bug 1698600 - CSS animation profiler markers should also be added for animations that run to completion, r=birtles. 2021-03-16 12:04:01 +00:00
audiochannel
base Bug 1669342 - part 3: Rewrite `AssertIfMismatchRootAndRangeBoundaries()` r=smaug 2021-03-16 21:43:40 +00:00
battery
bindings Backed out 2 changesets (bug 1647845) for causing assertions in nsStyleStruct.cpp CLOSED TREE 2021-03-16 23:01:50 +02:00
broadcastchannel Bug 1693306 - Simplify some uses of LookupOrInsertWith by GetOrInsertNew. r=xpcom-reviewers,necko-reviewers,dragana,nika 2021-02-26 09:22:54 +00:00
browser-element Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers 2021-03-02 22:11:58 +00:00
cache Bug 1686191 - Remove module argument from LogError. r=dom-workers-and-storage-reviewers,janv 2021-03-12 15:01:21 +00:00
canvas Bug 1696976 - Log a deprecation warning for extension use of canvas drawWindow r=baku,rpl 2021-03-15 12:30:54 +00:00
chrome-webidl Bug 1691135 - pt 1. SHistoryListeners track browser ID as it is constant r=nika 2021-03-12 01:16:15 +00:00
clients Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
commandhandler Bug 1693306 - Simplify some uses of LookupOrInsertWith by GetOrInsertNew. r=xpcom-reviewers,necko-reviewers,dragana,nika 2021-02-26 09:22:54 +00:00
console Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
credentialmanagement Bug 1691963: Handle destroyed inner window in IsSameOriginWithAncestors. r=nika 2021-02-22 21:30:39 +00:00
crypto Bug 1360715 - Part 2: Modify instanceofs in tests to non-cross-context r=edgar 2021-03-04 22:03:57 +00:00
debugger
docs
encoding
events Bug 1698439 - Replace calls to flushApzRepaints with promise equivalent. r=tnikkel 2021-03-16 00:02:20 +00:00
fetch Bug 1166995 - P1. Notify DOMDocFetchSuccess when a fetch or XHR request completes successfully r=smaug,sfoster 2021-03-16 09:15:19 +00:00
file Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
filehandle Bug 1691913 - Rename nsBaseHashtable::GetOrInsert(With) to LookupOrInsert(With). r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika 2021-02-26 09:11:45 +00:00
filesystem Bug 1691894 - Replace several suboptimal uses of Put after Get by GetOrInsertWith or WithEntryHandle. r=xpcom-reviewers,necko-reviewers,kmag,valentin,geckoview-reviewers,agi 2021-02-15 15:12:17 +00:00
flex
gamepad Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
geolocation
grid
html Bug 1166995 - P2. Call onFormSubmit when a form or a password field is removed from the DOM tree r=sfoster,tgiles,smaug 2021-03-16 09:15:19 +00:00
imptests
indexedDB Bug 1686191 - Remove module argument from LogError. r=dom-workers-and-storage-reviewers,janv 2021-03-12 15:01:21 +00:00
interfaces Bug 1696802. Add test. r=botond,mstange 2021-03-12 02:10:43 +00:00
ipc Bug 1697680 - Remove Presentation API implementation r=smaug,agi 2021-03-16 18:21:12 +00:00
jsurl Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
l10n Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
locales Bug 1696976 - Log a deprecation warning for extension use of canvas drawWindow r=baku,rpl 2021-03-15 12:30:54 +00:00
localstorage Bug 1695162 - Migrate from custom hashtable iteration to range-based for in accessible, dom/animation, dom/base, dom/localstorage, gfx/thebes. r=nika 2021-03-12 16:14:58 +00:00
manifest
mathml
media Bug 1661572 [Linux] When we fail to create DMABuf surface at FFmpegVideoDecoder then restart video decoder to create a new ImageHost, r=alwu 2021-03-16 07:57:40 +00:00
messagechannel Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
midi Bug 1691913 - Rename nsClassHashtable::LookupOrAdd to GetOrInsertNew. r=xpcom-reviewers,nika 2021-02-22 12:07:47 +00:00
network Bug 1696776 - Expose socket transport in TCPSocket. r=valentin 2021-03-07 16:22:11 +00:00
notification Bug 1686616 - make PermissionManager use Components instead of Services. r=kmag 2021-02-18 13:26:31 +00:00
offline
payments Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
performance Bug 1673931 - Add missing include directives. r=andi 2021-03-04 14:32:14 +00:00
permission Bug 1686616 - make PermissionManager use Components instead of Services. r=kmag 2021-02-18 13:26:31 +00:00
plugins Bug 1696845 - Use dlsym for gdk_*_display_get_type. r=stransky 2021-03-11 14:32:53 +00:00
power Bug 1634281 - Remove unused nsDataHashtable.h includes. r=xpcom-reviewers,nika 2021-03-03 08:58:52 +00:00
prio
promise Bug 1696756 - Log promise rejections from sandboxed code to the right window. r=smaug 2021-03-07 19:51:39 +00:00
prototype Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
push Bug 1686616 - make PermissionManager use Components instead of Services. r=kmag 2021-02-18 13:26:31 +00:00
quota Bug 1686191 - Add support for warnings integrated with QM_TRY. r=dom-workers-and-storage-reviewers,janv 2021-03-12 15:07:57 +00:00
reporting Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika 2021-02-26 09:11:46 +00:00
res
script Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
security Bug 1697976: Increase timeout for test test_break_endless_upgrade_downgrade_loop.html. r=valentin 2021-03-15 15:06:15 +00:00
serializers Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
serviceworkers Bug 1634281 - Use nsBaseHashtable::GetOrInsertNew where possible. r=xpcom-reviewers,nika 2021-03-03 08:58:52 +00:00
simpledb Bug 1686191 - Remove module argument from LogError. r=dom-workers-and-storage-reviewers,janv 2021-03-12 15:01:21 +00:00
smil
storage Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
svg Bug 1342741 - Adjust a few testcases that are sensitive to glyph/metrics differences in Menlo. r=mstange 2021-03-12 16:13:18 +00:00
system Backed out 2 changesets (bug 1672431) for Browser-chrome failures with assertion on checkouts/gecko/dom/system/IOUtils.cpp. CLOSED TREE 2021-03-11 01:44:09 +02:00
tests Bug 1697680 - Remove Presentation API implementation r=smaug,agi 2021-03-16 18:21:12 +00:00
u2f
url Bug 1673931 - Avoid including BindingDeclarations.h from header files. r=nika 2021-03-04 14:32:14 +00:00
vr
webauthn Bug 1696159 - Cut over PWebAuthnTransaction::RequestCancel to use IPC Tainting. r=tjr 2021-03-12 16:58:28 +00:00
webbrowserpersist Bug 1695864 - Remove redundant mURIMap iteration in nsWebBrowserPersist::SerializeNextFile. r=jld 2021-03-10 10:37:05 +00:00
webgpu Bug 1622846 - Use `view` instead of `attachment` to match upstream WebIDL r=kvark,emilio 2021-03-08 16:20:34 +00:00
webidl Bug 1697680 - Remove Presentation API implementation r=smaug,agi 2021-03-16 18:21:12 +00:00
webshare
websocket Bug 1696024 - py3 updates to dom/websocket mochitests; r=ahal 2021-03-08 15:36:32 +00:00
workers Bug 1698473 - Ensure WASM prefs are read in workers. r=lth 2021-03-15 19:23:52 +00:00
worklet Bug 1676361 - Move AutoEntryScript to a separate header file to avoid pulling in GeckoProfiler.h everywhere. r=mccr8 2021-03-05 15:29:49 +00:00
xhr Bug 1166995 - P1. Notify DOMDocFetchSuccess when a fetch or XHR request completes successfully r=smaug,sfoster 2021-03-16 09:15:19 +00:00
xml Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
xslt Bug 1686616 - make StringBundle use Components instead of Services. r=kmag 2021-02-18 13:26:32 +00:00
xul Bug 1692835 - Remove nsJSThingHashtable. r=xpcom-reviewers,nika 2021-03-02 09:02:19 +00:00
jar.mn
moz.build Bug 1697680 - Remove Presentation API implementation r=smaug,agi 2021-03-16 18:21:12 +00:00