Closed Bug 2082692 Opened 1 month ago Closed 28 days ago

[wpt-sync] Sync PR 63722 - Remove ForceInertTemplate from ParseHTMLFragment

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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: I160dd56857b77ab57677f2827d7c4df21b500c7c

Reviewed-on: https://chromium-review.googlesource.com/8580486
WPT-Export-Revision: 5b0d035a675d6a0e5268595a863f432b527d2769

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Attached file Notable wpt changes —

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

(See attachment for full changes)

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

Attachment

General

Created:
Updated:
Size: