Closed Bug 2095437 Opened 11 days ago Closed 10 days ago

[wpt-sync] Sync PR 65059 - [CSP] Clarify embedded Trusted Types errors and expand WPT coverage

Categories

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

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Viktoria Zlatinova <vizlatin@microsoft.com> wrote:

[CSP] Clarify embedded Trusted Types errors and expand WPT coverage

The frame-blocking diagnostic suggests that any stronger policy is
sufficient, but trusted-types currently requires normalized exact
matching. Explain this restriction when the feature is enabled and the
required policy contains trusted-types, preserving the existing message
otherwise. Cover both diagnostic paths with browser tests.

Add 25 WPT cases covering multi-policy intersections, wildcard and
duplicate permissions, empty and missing directives, report-only
policies, and combined directive requirements.

Follow-up to https://crrev.com/c/8237933.

Bug: 40912894
Change-Id: Iad811b6f3be4770c9a5e950eb0ac0c3594de91b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8786742
Commit-Queue: Viktoria Zlatinova \<vizlatin@microsoft.com>
Reviewed-by: Liam Brady \<lbrady@google.com>
Cr-Commit-Position: refs/heads/main@{#1742276}

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: 27
FAIL: 19

Chrome

OK : 1
PASS: 28
FAIL: 18

Safari

OK : 1
PASS: 27
FAIL: 19

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a987a5171c44 https://hg.mozilla.org/integration/autoland/rev/e4c39eb145ac [wpt PR 65059] - [CSP] Clarify embedded Trusted Types errors and expand WPT coverage, a=testonly
Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.