[wpt-sync] Sync PR 64952 - Re-apply: Fix ShadowRoot subtests in domparsing WPTs
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64952 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64952
Details from upstream follow.
Philip Rogers <pdr@chromium.org> wrote:
Re-apply: Fix ShadowRoot subtests in domparsing WPTs
This re-applies crrev.com/c/8701544 (034b0fdee073), which was
overwritten during the WPT import in crrev.com/c/8752346
(8f709a718b65).
document.currentScriptis null when a classic\<script>executes in
a shadow tree, causingresources/slow.jsto throw a TypeError on
document.currentScript.srcand time out in theShadowRootsubtests.Rename
slow.js(andslow.js.headers) toslow.sub.js(and
slow.sub.js.headers) and readidand the newly addedtag
parameter via WPT server-side substitution ({{GET[id]}}and
{{GET[tag]}}) instead, preserving cross-test isolation while allowing
allShadowRootsubtests to pass. Also update the additional
domparsing/streaming tests from the WPT import to reference
slow.sub.jsand remove
html-unsafe-external-scripts-async-expected.txt.Fixed: 579016475
Change-Id: Ib5a710bb8aba7166d115276f24afd0362a26b112Reviewed-on: https://chromium-review.googlesource.com/8763307
WPT-Export-Revision: dc70d0722ca89c87b00a5d71765c57cd2acd8507
| Assignee | ||
Comment 1•20 days ago
|
||
PR 64952 applied with additional changes from upstream: 3280b7aabcd519a65bba4f27e87ed34f50560d85
| Assignee | ||
Updated•20 days ago
|
| Assignee | ||
Comment 2•19 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=117878
| Assignee | ||
Comment 3•12 days ago
|
||
Try push failed to land: Lando job 117878 for the try push is FAILED:
Aborting, could not apply patch buffer for None.
hg error in cmd: hg import -s 95 --date 1794355108 0 --user moz-wptsync-bot <wptsync@mozilla.com> --logfile /tmp/tmpi3vacpswmsg /tmp/tmp9hi8z0s5diff: applying /tmp/tmp9hi8z0s5diff
abort: /tmp/tmp9hi8z0s5diff: no diffs found
| Assignee | ||
Comment 4•12 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=121841
| Assignee | ||
Comment 5•12 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 9 tests and 12 subtests
Status Summary
Firefox
OK : 9
PASS: 1
FAIL: 117
Chrome
OK : 9
PASS: 100
FAIL: 18
Links
Details
New Tests That Don't Pass
- /domparsing/html-unsafe-external-scripts-async.html [wpt.fyi]
- setHTMLUnsafe with { runScripts: true } on connected element: external scripts execute as async:
FAIL(Chrome:PASS) - setHTMLUnsafe with { runScripts: true } on disconnected element: external scripts have async=true and execute as async once connected:
FAIL(Chrome:PASS) - appendHTMLUnsafe with { runScripts: true } on connected element: external scripts execute as async:
FAIL(Chrome:PASS) - appendHTMLUnsafe with { runScripts: true } on disconnected element: external scripts have async=true and execute as async once connected:
FAIL(Chrome:PASS) - prependHTMLUnsafe with { runScripts: true } on connected element: external scripts execute as async:
FAIL(Chrome:PASS) - prependHTMLUnsafe with { runScripts: true } on disconnected element: external scripts have async=true and execute as async once connected:
FAIL(Chrome:PASS) - beforeHTMLUnsafe with { runScripts: true } on connected element: external scripts execute as async:
FAIL(Chrome:PASS) - beforeHTMLUnsafe with { runScripts: true } on disconnected element: external scripts have async=true and execute as async once connected:
FAIL(Chrome:PASS) - afterHTMLUnsafe with { runScripts: true } on connected element: external scripts execute as async:
FAIL(Chrome:PASS) - afterHTMLUnsafe with { runScripts: true } on disconnected element: external scripts have async=true and execute as async once connected:
FAIL(Chrome:PASS) - replaceWithHTMLUnsafe with { runScripts: true } on connected element: external scripts execute as async:
FAIL(Chrome:PASS) - replaceWithHTMLUnsafe with { runScripts: true } on disconnected element: external scripts have async=true and execute as async once connected:
FAIL(Chrome:PASS) - ShadowRoot.setHTMLUnsafe with { runScripts: true }: external scripts execute as async:
FAIL(Chrome:PASS) - ShadowRoot.appendHTMLUnsafe with { runScripts: true }: external scripts execute as async:
FAIL(Chrome:PASS) - ShadowRoot.prependHTMLUnsafe with { runScripts: true }: external scripts execute as async:
FAIL(Chrome:PASS)
- setHTMLUnsafe with { runScripts: true } on connected element: external scripts execute as async:
- /domparsing/stream-html-abort-unblocks-rendering-defer.html [wpt.fyi]
- abort() unblocks rendering on a streamed render-blocking defer script:
FAIL(Chrome:PASS)
- abort() unblocks rendering on a streamed render-blocking defer script:
- /domparsing/stream-html-abort-unblocks-rendering.html [wpt.fyi]
- abort() unblocks rendering on a streamed render-blocking parser-blocking script:
FAIL(Chrome:PASS)
- abort() unblocks rendering on a streamed render-blocking parser-blocking script:
- /domparsing/stream-html-defer-async-script.html [wpt.fyi]
- element.streamAppendHTMLUnsafe with defer/async scripts:
FAIL(Chrome:PASS) - element.streamAppendHTMLUnsafe: defer and module scripts run after close() resolves, one per task:
FAIL(Chrome:PASS) - element.streamAppendHTMLUnsafe: inline defer, importmap, and speculationrules scripts:
FAIL(Chrome:PASS) - element.streamAppendHTMLUnsafe: streamed importmap registers and resolves specifiers for streamed module scripts:
FAIL(Chrome:PASS) - element.streamAppendHTMLUnsafe: async scripts do not block parsing and run in load order:
FAIL(Chrome:PASS) - element.streamAppendHTMLUnsafe with defer/module scripts should not execute on abort:
FAIL(Chrome:PASS) - element.streamAppendHTMLUnsafe should not modify Document readyState:
FAIL(Chrome:PASS) - element.streamHTMLUnsafe with defer/async scripts:
FAIL(Chrome:PASS) - element.streamHTMLUnsafe: defer and module scripts run after close() resolves, one per task:
FAIL(Chrome:PASS) - element.streamHTMLUnsafe: inline defer, importmap, and speculationrules scripts:
FAIL(Chrome:PASS) - element.streamHTMLUnsafe: streamed importmap registers and resolves specifiers for streamed module scripts:
FAIL(Chrome:PASS) - element.streamHTMLUnsafe: async scripts do not block parsing and run in load order:
FAIL(Chrome:PASS) - element.streamHTMLUnsafe with defer/module scripts should not execute on abort:
FAIL(Chrome:PASS) - element.streamHTMLUnsafe should not modify Document readyState:
FAIL(Chrome:PASS) - element.streamPrependHTMLUnsafe: defer scripts do not run if the reference child is removed before a trailing '<' is flushed by close():
FAIL(Chrome:FAIL)
- element.streamAppendHTMLUnsafe with defer/async scripts:
- /domparsing/stream-html-disconnected-target-scripts.html [wpt.fyi]
- streamHTMLUnsafe with runScripts: true into a disconnected element: external scripts run async once connected:
FAIL(Chrome:PASS) - streamHTMLUnsafe with runScripts: false into a disconnected element: scripts never run:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe with runScripts: true into a disconnected element: external scripts run async once connected:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe with runScripts: false into a disconnected element: scripts never run:
FAIL(Chrome:PASS)
- streamHTMLUnsafe with runScripts: true into a disconnected element: external scripts run async once connected:
- /domparsing/stream-html-parser-blocking-script.html [wpt.fyi]
- streamHTMLUnsafe with parser blocking script should process in order:
FAIL(Chrome:PASS) - Multiple parser-blocking scripts with out-of-order fetch times execute in document order:
FAIL(Chrome:PASS) - Inline script split across chunk boundaries executes only when tag closes:
FAIL(Chrome:PASS) - External script tag split across chunk boundaries parses and executes correctly:
FAIL(Chrome:PASS) - DOM mutations inside streamed parser-blocking script maintain correct insertion order:
FAIL(Chrome:PASS) - streamHTMLUnsafe with parser-blocking script should not execute or parse buffered markup after abort:
FAIL(Chrome:PASS) - streamHTMLUnsafe continues parsing after runtime script error:
FAIL(Chrome:PASS) - streamHTMLUnsafe on detached element should parse markup without executing scripts:
FAIL(Chrome:PASS) - write() resolves without waiting for a parser-blocking script to finish loading:
FAIL(Chrome:PASS) - Chunks written while blocked are parsed in order before writes initiated from inside the blocking script:
FAIL(Chrome:PASS) - Inline script writing to its own stream appends after the remainder of the current chunk:
FAIL(Chrome:PASS) - close() while blocked waits for the blocking script and remaining input, then defer scripts run:
FAIL(Chrome:PASS) - Unclosed <script> at close() never runs, stays in the DOM, and is marked already started:
FAIL(Chrome:PASS) - Rejected write (symbol) stops the parser and prevents pending blocking script and buffered markup from running:
FAIL(Chrome:PASS) - Rejected write (toStringThrow) stops the parser and prevents pending blocking script and buffered markup from running:
FAIL(Chrome:PASS) - Rejected write (toStringAbortAndThrow) stops the parser and prevents pending blocking script and buffered markup from running:
FAIL(Chrome:PASS) - Rejected write (toStringRemoveRefAndThrow) stops the parser and prevents pending blocking script and buffered markup from running:
FAIL(Chrome:PASS) - Rejected write (displacedRef) stops the parser and prevents pending blocking script and buffered markup from running:
FAIL(Chrome:PASS) - Abort with an unclosed <script> marks it already started:
FAIL(Chrome:PASS) - Blocking script whose src 404s fires error event, parsing continues, and close() resolves:
FAIL(Chrome:PASS) - Live document script-blocking stylesheets do not block streamed inline, external, or defer scripts:
FAIL(Chrome:PASS) - document.currentScript is the script element in light DOM and null in a ShadowRoot:
FAIL(Chrome:PASS) - document.write() from external streamed script is ignored; from inline streamed script implicitly opens document:
FAIL(Chrome:PASS) - Two concurrent streams block independently:
FAIL(Chrome:PASS) - Removing iframe while stream is blocked on external script does not crash or execute scripts:
FAIL(Chrome:PASS) - streamHTMLUnsafe: close() waits for a pending parser-blocking script and remaining input:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: close() waits for a pending parser-blocking script and remaining input:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: close() waits for a pending parser-blocking script and remaining input:
FAIL(Chrome:PASS) - streamBeforeHTMLUnsafe: close() rejects with HierarchyRequestError if referenceChild is removed after a pending parser-blocking script:
FAIL(Chrome:FAIL)
- streamHTMLUnsafe with parser blocking script should process in order:
- /domparsing/stream-html-reentrancy.html [wpt.fyi]
- streamHTMLUnsafe: abort() from a streamed inline script is deferred until the current chunk is parsed:
FAIL(Chrome:PASS) - streamHTMLUnsafe: abort() from a custom element reaction is deferred until the current chunk is parsed:
FAIL(Chrome:PASS) - streamHTMLUnsafe: write() and close() from a streamed inline script are processed after the current chunk:
FAIL(Chrome:PASS) - streamHTMLUnsafe: write() from a custom element reaction is processed after the current chunk:
FAIL(Chrome:PASS) - streamHTMLUnsafe: abort() from a streamed inline script after a parser-blocking script stops parsing after the current token:
FAIL(Chrome:FAIL) - streamHTMLUnsafe: abort() from a microtask before a streamed script is prepared prevents that script from running:
FAIL(Chrome:FAIL) - streamHTMLUnsafe: abort() from a custom element reaction drops text that the current token would insert:
FAIL(Chrome:FAIL) - streamHTMLUnsafe: abort() from a custom element reaction drops elements that the current token would insert:
FAIL(Chrome:FAIL) - streamHTMLUnsafe: customized built-in <template shadowrootmode> upgrades at microtask checkpoint after attaching shadow root:
FAIL(Chrome:PASS) - streamHTMLUnsafe: customized built-in <template for> upgrades at microtask checkpoint after patching:
FAIL(Chrome:PASS) - streamHTMLUnsafe: abort() from a foster-parented custom element reaction in table text keeps patch markers at </template>:
FAIL(Chrome:FAIL) - streamHTMLUnsafe: write() from a streamed inline script after a parser-blocking script is parsed after the current chunk:
FAIL(Chrome:PASS) - streamHTMLUnsafe: close() from a streamed inline script after a parser-blocking script closes the stream after the current chunk:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: abort() from a streamed inline script is deferred until the current chunk is parsed:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: abort() from a custom element reaction is deferred until the current chunk is parsed:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: write() and close() from a streamed inline script are processed after the current chunk:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: write() from a custom element reaction is processed after the current chunk:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: abort() from a streamed inline script after a parser-blocking script stops parsing after the current token:
FAIL(Chrome:FAIL) - streamAppendHTMLUnsafe: abort() from a microtask before a streamed script is prepared prevents that script from running:
FAIL(Chrome:FAIL) - streamAppendHTMLUnsafe: abort() from a custom element reaction drops text that the current token would insert:
FAIL(Chrome:FAIL) - streamAppendHTMLUnsafe: abort() from a custom element reaction drops elements that the current token would insert:
FAIL(Chrome:FAIL) - streamAppendHTMLUnsafe: customized built-in <template shadowrootmode> upgrades at microtask checkpoint after attaching shadow root:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: customized built-in <template for> upgrades at microtask checkpoint after patching:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: abort() from a foster-parented custom element reaction in table text keeps patch markers at </template>:
FAIL(Chrome:FAIL) - streamAppendHTMLUnsafe: write() from a streamed inline script after a parser-blocking script is parsed after the current chunk:
FAIL(Chrome:PASS) - streamAppendHTMLUnsafe: close() from a streamed inline script after a parser-blocking script closes the stream after the current chunk:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: abort() from a streamed inline script is deferred until the current chunk is parsed:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: abort() from a custom element reaction is deferred until the current chunk is parsed:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: write() and close() from a streamed inline script are processed after the current chunk:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: write() from a custom element reaction is processed after the current chunk:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: abort() from a streamed inline script after a parser-blocking script stops parsing after the current token:
FAIL(Chrome:FAIL) - streamPrependHTMLUnsafe: abort() from a microtask before a streamed script is prepared prevents that script from running:
FAIL(Chrome:FAIL) - streamPrependHTMLUnsafe: abort() from a custom element reaction drops text that the current token would insert:
FAIL(Chrome:FAIL) - streamPrependHTMLUnsafe: abort() from a custom element reaction drops elements that the current token would insert:
FAIL(Chrome:FAIL) - streamPrependHTMLUnsafe: customized built-in <template shadowrootmode> upgrades at microtask checkpoint after attaching shadow root:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: customized built-in <template for> upgrades at microtask checkpoint after patching:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: abort() from a foster-parented custom element reaction in table text keeps patch markers at </template>:
FAIL(Chrome:FAIL) - streamPrependHTMLUnsafe: write() from a streamed inline script after a parser-blocking script is parsed after the current chunk:
FAIL(Chrome:PASS) - streamPrependHTMLUnsafe: close() from a streamed inline script after a parser-blocking script closes the stream after the current chunk:
FAIL(Chrome:PASS) - documentElement.streamHTMLUnsafe: abort() from a foster-parented custom element reaction in table text does not merge <body> attributes:
FAIL(Chrome:FAIL)
- streamHTMLUnsafe: abort() from a streamed inline script is deferred until the current chunk is parsed:
- /domparsing/unsafe-and-trusted-types-external-scripts-async.html [wpt.fyi]
- setHTMLUnsafe with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - appendHTMLUnsafe with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - prependHTMLUnsafe with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - beforeHTMLUnsafe with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - afterHTMLUnsafe with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - replaceWithHTMLUnsafe with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - innerHTML with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - outerHTML with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - beforebegin with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - afterbegin with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - beforeend with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS) - afterend with Trusted Types default policy setting runScripts: true: external scripts execute as async:
FAIL(Chrome:PASS)
- setHTMLUnsafe with Trusted Types default policy setting runScripts: true: external scripts execute as async:
Comment 7•8 days ago
|
||
| bugherder | ||
Description
•