[wpt-sync] Sync PR 63323 - Disallow <script> targets in HTMLStream
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
144.28 KB,
text/plain
|
Details |
Sync web-platform-tests PR 63323 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63323
Details from upstream follow.
Noam Rosenthal <nrosenthal@chromium.org> wrote:
Disallow <script> targets in HTMLStream
Align HTMLStream::Create with the WHATWG HTML spec for streamHTML (#12758)
by throwing a NotSupportedError DOMException when the target is an HTML
or SVG \<script> element for both safe and unsafe streaming methods.Update stream-tokenizer-context.html accordingly: drop the cases that
streamed directly into \<script> and cover the remaining RAWTEXT and
\<noscript> tokenizer contexts for the streaming methods.Bug: 491743369
Change-Id: I441e700b82fe334babefba697e4a1ba0c77a20cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8498303
Reviewed-by: Mason Freed \<masonf@chromium.org>
Commit-Queue: Noam Rosenthal \<nrosenthal@google.com>
Cr-Commit-Position: refs/heads/main@{#1712602}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=101267
| 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 36 tests and 45 subtests
Status Summary
Firefox
OK : 2[GitHub] 35[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: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 41[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]
FAIL: 81[GitHub] 1486[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]
Chrome
OK : 2
PASS: 45
FAIL: 36
Safari
OK : 2
FAIL: 81
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
(See attachment for full changes)
Comment 3•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f1f1266387e6
https://hg.mozilla.org/mozilla-central/rev/f9f45636a262
Description
•