Closed Bug 2092704 Opened 16 days ago Closed 12 days ago

[wpt-sync] Sync PR 64547 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329798

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64547 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64547
Details from upstream follow.

Anne van Kesteren <annevk@annevk.nl> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329798

WebKit export from bug: Adopting a shadow host with a live collection hits a debug assertion

<pre>
Adopting a shadow host with a live collection hits a debug assertion

When the old document has a live collection with a valid cache,
Node::moveTreeToNewScope() takes the slow path. Moving the collection's owner
invalidates that cache, which unregisters the collection from the old
document. A shadow root moved after that point can then find the old document
eligible for fast adoption, which fails the assertion in
moveShadowTreeToNewDocumentSlowCase(). Moving a tree into a user agent shadow
tree takes the slow path even when the documents are eligible, so the
assertion can fail there too.

The assertion has been too strict since it was added in <a href="https://commits.webkit.org/273544@main">273544@main</a>.
moveTreeToNewScope() already decides once, and the slow path is correct either
way, so remove the assertion.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=329798">https://bugs.webkit.org/show_bug.cgi?id=329798</a>
</pre>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 7 tests

Status Summary

Firefox

PASS : 1[GitHub] 6[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1

Chrome

PASS : 1

Safari

PASS : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.