Closed Bug 2067702 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 62247 - Inherit and apply Document Policy for local-scheme dedicated workers

Categories

(Core :: DOM: Performance APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Monica Chintala <monicach@microsoft.com> wrote:

Inherit and apply Document Policy for local-scheme dedicated workers

Enables Document Policy support for local-scheme dedicated workers
(blob:, data:, about:) by inheriting the policy from the creator
document.

These schemes do not deliver their own response headers, so
DedicatedWorkerGlobalScope::Initialize() inherits the creator document's
Document Policy for them. This aligns with the inheritance rules HTML
defines for the policy container for Workers, which
Content-Security-Policy already follows in this method: inherit from the
creator for local schemes, and apply response headers for network
schemes.

Applying Document Policy from response headers for network-scheme
workers is completed by:
https://chromium-review.googlesource.com/c/chromium/src/+/7236250

This behavior is gated on the DocumentPolicyInDedicatedWorker runtime
flag.

Define DP for Workers PR -
https://github.com/WICG/document-policy/pull/46

Bug: 40168691
Change-Id: Ia8c466bbad424e309d0498e5b28e492723dd85d2
Co-authored-by: Copilot \<223556219+Copilot@users.noreply.github.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7857031
Reviewed-by: Ari Chivukula \<arichiv@chromium.org>
Commit-Queue: Monica Chintala \<monicach@microsoft.com>
Reviewed-by: Diana Qu \<xiaqu@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1687686}

Component: web-platform-tests → DOM: Performance APIs
Product: Testing → Core

CI Results

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

Total 5 tests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

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/f8094b732e53 https://hg.mozilla.org/integration/autoland/rev/a6ec6809623f [wpt PR 62247] - Inherit and apply Document Policy for local-scheme dedicated workers, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
You need to log in before you can comment on or make changes to this bug.