[wpt-sync] Sync PR 63214 - Mark scripts in frameless XML documents as already started
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63214 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63214
Details from upstream follow.
Joey Arhar <jarhar@chromium.org> wrote:
Mark scripts in frameless XML documents as already started
XSLTProcessor.transformToDocument() creates a frameless Document and
populates it via Document::SetContent(). For XML output,
XMLDocumentParser and XMLDocumentParserRs do not create a script_runner_
when the document has no frame, so ScriptLoader::PrepareScript() is
never called during parsing. Because ShouldMarkScriptAlreadyStarted()
previously only checked for DOMParser, XMLHttpRequest, and fragment
parsing, script elements in XML-output transformToDocument() results
were left with already_started set to false and would execute if later
cloned or imported into an active document.Update ShouldMarkScriptAlreadyStarted() in both XML parsers to also
check !document_->GetFrame() so that scripts in frameless XML documents
are marked already started upon creation.Fixed: 565252325
Change-Id: Ia09b96f447c8d8857a7bd2385e87191efd4c3126Reviewed-on: https://chromium-review.googlesource.com/8494597
WPT-Export-Revision: febc501705631b97268b698b31d5c78a077e349b
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=99868
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 17 tests and 5 subtests
Status Summary
Firefox
OK : 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-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]
PASS: 8[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 9[GitHub] 203[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 205[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-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 2[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 3[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-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
FAIL: 9
Safari
OK : 1
PASS: 9
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /xml/xslt/encoding-single-chunk.html [wpt.fyi]:
FAIL - /xml/xslt/functions.tentative.window.html [wpt.fyi]
- unparsed-entity-uri:
FAIL
- unparsed-entity-uri:
- /xml/xslt/fetch/xslt.https.sub.html [wpt.fyi]
- undefined: sec-fetch-mode:
FAIL
- undefined: sec-fetch-mode:
https://hg.mozilla.org/mozilla-central/rev/8f7a022b2d6e
https://hg.mozilla.org/mozilla-central/rev/df621917128e
Description
•