[wpt-sync] Sync PR 64572 - script: Use ensure_pre_insertion_validity in Node.replaceChild
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64572 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64572
Details from upstream follow.
Gabriele Cabrini <gabriele@gabrielecabrini.it> wrote:
script: Use ensure_pre_insertion_validity in Node.replaceChild
ReplaceChildhad its own copy of the pre-insertion checks. That copy usedis_inclusive_ancestor_of
instead ofis_host_including_inclusive_ancestor, so a shadow host's ancestor could be inserted
into the host's shadow root, andbind_to_treethen recursed forever.As the spec now does ("ensure pre-insert validity given node, parent, child, and « child »"),
ReplaceChildnow callsNode::ensure_pre_insertion_validity, which gets achildren_to_exclude
parameter.moveBeforegets the same host-including check fix.Testing: Added a WPT crashtest
Fixes: #<!-- nolink -->49533
Reviewed in servo/servo#49549
| Assignee | ||
Updated•16 days ago
|
| Assignee | ||
Updated•16 days ago
|
| Assignee | ||
Updated•16 days ago
|
| Assignee | ||
Comment 1•16 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
PASS: 1
Chrome
PASS: 1
Safari
PASS: 1
Links
Comment 3•12 days ago
|
||
| bugherder | ||
Description
•