Closed Bug 2085485 Opened 1 month ago Closed 25 days ago

[wpt-sync] Sync PR 64060 - CSP: Enforce Trusted Types in embedded CSP

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])

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

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

Viktoria Zlatinova <vizlatin@microsoft.com> wrote:

CSP: Enforce Trusted Types in embedded CSP

Include Trusted Types directives when checking whether a response
satisfies an iframe's required CSP. Combine enforcing response policies
before conservatively comparing normalized Trusted Types restrictions,
and ignore report-only policies.

The initial trusted-types implementation compares normalized enforcement
configurations using exact equality. This is conservative and may reject
stricter returned subsets while richer subsumption is deferred.

Flag: CSPEmbeddedEnforcementTrustedTypes (disabled by default) When
disabled, CSP:EE preserves its existing source-list-only subsumption
behavior and skips Trusted Types checks.

Bug: 40912894
Change-Id: Ic1f887cce8f075306c78fd78a71cba7344604193
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8237933
Reviewed-by: Antonio Sartori \<antoniosartori@chromium.org>
Reviewed-by: Reilly Grant \<reillyg@chromium.org>
Reviewed-by: David Baron \<dbaron@chromium.org>
Commit-Queue: Viktoria Zlatinova \<vizlatin@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1723352}

Component: web-platform-tests → DOM: Security
Product: Testing → Core

CI Results

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

Total 24 tests

Status Summary

Firefox

OK : 1
PASS: 13
FAIL: 8

Chrome

OK : 1
PASS: 14
FAIL: 7

Safari

OK : 1
PASS: 13
FAIL: 8

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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