Closed Bug 2081279 Opened 1 month ago Closed 19 days ago

[wpt-sync] Sync PR 63592 - [Sanitizer] Sanitize is= attribute on document element.

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 63592 into mozilla-central (this bug is closed when the sync is complete).

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

Daniel Vogelheim <vogelheim@chromium.org> wrote:

[Sanitizer] Sanitize is= attribute on document element.

In Document.parseHTML (and Document.parseHTMLUnsafe) treats the document
element seperately and has a seperate code path for it
(HTMLContrsuctionSite::InsertHMLStartTagInBody). This code path was
overlooked in crrev.com/c/7883146 and now also checks whether the is=
attribute is allowed on this element.

Fixed: 571722742
Change-Id: If99538f13a6b741f28c50db1b0001d8cf147c342
Reviewed-on: https://chromium-review.googlesource.com/8559025
WPT-Export-Revision: b48a4b89cd65d11cdf910b4bcc3a92f414e18346

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 44 tests and 141 subtests

Status Summary

Firefox

OK : 1[GitHub] 44[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: 20[GitHub] 2431[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: 1045

Chrome

OK : 1
PASS: 20

Safari

OK : 1
FAIL: 20

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fb9681562872 https://hg.mozilla.org/integration/autoland/rev/c9aa31f260af [wpt PR 63592] - [Sanitizer] Sanitize is= attribute on document element., a=testonly
Status: NEW → RESOLVED
Closed: 19 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: