[wpt-sync] Sync PR 62247 - Inherit and apply Document Policy for local-scheme dedicated workers
Categories
(Core :: DOM: Performance APIs, task, P4)
Tracking
()
| 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/+/7236250This behavior is gated on the DocumentPolicyInDedicatedWorker runtime
flag.Define DP for Workers PR -
https://github.com/WICG/document-policy/pull/46Bug: 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}
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=7f3ea04293db24bcea1d80f8f2f64da92752652b
| Assignee | ||
Comment 2•3 months ago
|
||
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
- /js-self-profiling/with-document-policy/dedicated-worker-blob.https.html [wpt.fyi]:
SKIP - /js-self-profiling/with-document-policy/dedicated-worker-data.https.html [wpt.fyi]:
SKIP - /js-self-profiling/with-document-policy/dedicated-worker-nested-blob.https.html [wpt.fyi]:
OK[GitHub],SKIP[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] (Chrome:OK, Safari:OK)- nested blob: dedicated worker should inherit js-profiling policy transitively from creator document:
FAIL(Chrome:FAIL, Safari:FAIL)
- nested blob: dedicated worker should inherit js-profiling policy transitively from creator document:
- /js-self-profiling/with-document-policy/dedicated-worker-no-policy.https.html [wpt.fyi]:
SKIP - /js-self-profiling/with-document-policy/dedicated-worker.https.html [wpt.fyi]:
SKIP
Tests Disabled in Gecko Infrastructure
- /js-self-profiling/with-document-policy/dedicated-worker-blob.https.html [wpt.fyi]:
SKIP - /js-self-profiling/with-document-policy/dedicated-worker-data.https.html [wpt.fyi]:
SKIP - /js-self-profiling/with-document-policy/dedicated-worker-nested-blob.https.html [wpt.fyi]:
OK[GitHub],SKIP[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] (Chrome:OK, Safari:OK) - /js-self-profiling/with-document-policy/dedicated-worker-no-policy.https.html [wpt.fyi]:
SKIP - /js-self-profiling/with-document-policy/dedicated-worker.https.html [wpt.fyi]:
SKIP
Comment 4•3 months ago
|
||
| bugherder | ||
Description
•