tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 97ca91022e7633860956700ec3ce56945794b543
parent 6c1a800640d1790d9f1f9a3c4a685b26aba0dd7e
Author: Oriol Brufau <obrufau@igalia.com>
Date:   Fri, 28 Nov 2025 14:53:18 +0000

Bug 2002783 [wpt PR 56327] - script: Stop assuming that previous dirty root is still connected, a=testonly

Automatic update from web-platform-tests
script: Stop assuming that previous dirty root is still connected

We were trying to update the dirty root to be the common ancestor of the
old dirty root and the element noted with dirty descendants. But that
would panic if when the old dirty root had been disconnected.

In that case, just set the dirty root to be the element, as if the old
dirty root was None.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

--

wpt-commits: 1a4d46c3388e6ee89e3a04864a26183b66c64c10
wpt-pr: 56327

Diffstat:
Atesting/web-platform/tests/dom/nodes/crashtests/document-replaceChild-input-documentElement.html | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/dom/nodes/crashtests/document-replaceChild-input-documentElement.html b/testing/web-platform/tests/dom/nodes/crashtests/document-replaceChild-input-documentElement.html @@ -0,0 +1,8 @@ +<!DOCTYPE html> +<title>Node.replaceChild()</title> +<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com"> +<link rel="help" href="https://dom.spec.whatwg.org/#dom-node-replacechild"> +<link rel="help" href="https://github.com/servo/servo/issues/40920"> +<script> +document.replaceChild(document.createElement("input"), document.documentElement); +</script>