Closed Bug 2060850 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 61750 - Support sanitization using <template for="..." sanitize>

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 61750 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/61750
Details from upstream follow.

Noam Rosenthal <nrosenthal@chromium.org> wrote:

Support sanitization using <template for="..." sanitize>

The sanitize boolean attribute makes all the descendants go through
baseline sanitization (removing scripts and unknown attributes).

The Sanitizer instance created for those intermediate templates are a
"safe clone" of the main parser sanitizer, or a "safe baseline"
sanitizer if that isn't present.

This is guarded by the DeclarativeFragment flag, and is meant for
experimenting and developer feedback at this point.

Bug: 535664974
Change-Id: I2e9b4f5753e4043cff348ff2b975d1f1f3f73e0e
Reviewed-on: https://chromium-review.googlesource.com/8125134
WPT-Export-Revision: bb015774d475e2080c082b70cdf9e9ab35b39744

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 14 tests and 1 subtests

Status Summary

Firefox

OK : 6[GitHub] 14[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: 5
FAIL: 6[GitHub] 15[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 : 6
PASS: 4
FAIL: 7

Safari

OK : 6
PASS: 3
FAIL: 8

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.