Open Bug 1964268 Opened 8 days ago Updated 7 hours ago

[wpt-sync] Sync PR 52318 - Implement Trusted types document write sinks

Categories

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

task

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Tim van der Lippe <tvanderlippe@gmail.com> wrote:

Implement Trusted types document write sinks

Implements the Document.write algorithm covering
trusted HTML. It is not fully spec-compliant as
it expects the full string to be concatenated when
passed through the policy. However, that requires
changing the parser to convert chunks to one full
string.

Part of https://github.com/servo/servo/issues/36258

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
Reviewed in servo/servo#36824

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 1 tests and 20 subtests

Status Summary

Firefox

OK : 1
PASS : 20
ERROR: 1

Chrome

OK : 1
PASS : 18
FAIL : 2

Safari

OK : 1
PASS : 20

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /trusted-types/block-string-assignment-to-Document-write.html [wpt.fyi]: ERROR [GitHub], OK [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] (Chrome: OK, Safari: OK)
Component: CSS Parsing and Computation → DOM: Security

Automatic update from web-platform-tests
Implement Trusted types document write sinks

Implements the Document.write algorithm covering
Trusted HTML.

Part of #36258

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>

--

wpt-commits: d3287f10104c970fb7216606a93ace0cf7c16867
wpt-pr: 52318

Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/637d378bbed9 [wpt PR 52318] - Implement Trusted types document write sinks,
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: