[wpt-sync] Sync PR 63722 - Remove ForceInertTemplate from ParseHTMLFragment
Categories
(Core :: DOM: Security, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
115.71 KB,
text/plain
|
Details |
Sync web-platform-tests PR 63722 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63722
Details from upstream follow.
Noam Rosenthal <nrosenthal@chromium.org> wrote:
Remove ForceInertTemplate from ParseHTMLFragment
Now that StreamingSanitizer creates disallowed elements in the inert
template document and strips disallowed attributes during tree
construction before custom element upgrade reactions run,
ParseHTMLFragment no longer needs to force an inert template document
when a sanitizer is active.Parsing directly into the context element's document (unless the context
element is a \<template>) preserves the target's scoped
CustomElementRegistry and matches the HTML spec's reaction ordering for
sanitized setHTML() and setHTMLUnsafe().Bug: 491743369, 569832084
Change-Id: I160dd56857b77ab57677f2827d7c4df21b500c7cReviewed-on: https://chromium-review.googlesource.com/8580486
WPT-Export-Revision: 5b0d035a675d6a0e5268595a863f432b527d2769
| 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=109493
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 45 tests and 141 subtests
Status Summary
Firefox
OK : 2[GitHub] 45[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: 6[GitHub] 2417[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: 11[GitHub] 1056[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: 7
FAIL: 10
Safari
OK : 2
PASS: 8
FAIL: 9
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /sanitizer-api/sethtml-scoped-custom-element-registry.html [wpt.fyi]
- setHTMLUnsafe on a shadow root uses the shadow root's registry, not the host's:
FAIL
- setHTMLUnsafe on a shadow root uses the shadow root's registry, not the host's:
(See attachment for full changes)
Comment 4•28 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8b2b4fc7505b
https://hg.mozilla.org/mozilla-central/rev/3829a8c4f5a7
Description
•