[wpt-sync] Sync PR 63282 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326351
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63282 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63282
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326351
WebKit export from bug: Cross-Origin-Embedder-Policy should be ignored in non-secure contexts
<pre>
Cross-Origin-Embedder-Policy should be ignored in non-secure contextsAn embedder policy is only obtained for a secure context, but we only checked
the response URL, so an HTTPS document in an HTTP page, and the workers it
creates, still required CORP.obtainCrossOriginEmbedderPolicy() and obtainOriginAgentClusterPolicy() now take
whether the environment is a secure context, rather than each guessing from the
response URL. A document uses Document::isSecureContext() and a worker uses its
owner's.With site isolation, Document::isSecureContext() is asked before a provisional
frame is added to the frame tree, so it now also checks the main frame when
there is no parent yet.This is a first step towards determining once per navigation whether the
reserved environment is a secure context, as HTML does. Document-Isolation-Policy
will need that as well, and Document::isSecureContext() could then stop walking
the frame tree.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326351">https://bugs.webkit.org/show_bug.cgi?id=326351</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=101113
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 104 tests and 1 subtests
Status Summary
Firefox
OK : 1[GitHub] 89[Gecko-linux2404-64-debug] 90[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug] 91[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 2[GitHub] 398[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug] 402[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-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 53
Chrome
OK : 1
PASS: 1
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/cross-origin-embedder-policy/cache-storage-reporting-dedicated-worker.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/cache-storage-reporting-document.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/cache-storage-reporting-service-worker.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/cache-storage-reporting-shared-worker.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/credentialless/reporting-navigation.https.window.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/credentialless/reporting-subresource-corp.https.window.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/credentialless/service-worker-coep-credentialless-proxy.https.window.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/credentialless/service-worker-coep-none-proxy.https.window.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/header-parsing.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/report-only-require-corp.https.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-linux2404-64-debug,Gecko-windows11-32-25h2-debug] - /html/cross-origin-embedder-policy/reporting-navigation.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/reporting-subresource-corp.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/reporting-to-frame-owner.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/reporting-to-worker-owner.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/about-blank-popup.https.html [wpt.fyi]
- Cross-Origin-Embedder-Policy is inherited by about:blank popup.:
FAIL
- Cross-Origin-Embedder-Policy is inherited by about:blank popup.:
- /html/cross-origin-embedder-policy/block-local-documents-inheriting-none.https.html [wpt.fyi]
- Prevent local scheme documents from loading within a COEP: require-corp iframe if they inherit COEP: none:
FAIL
- Prevent local scheme documents from loading within a COEP: require-corp iframe if they inherit COEP: none:
- /html/cross-origin-embedder-policy/cross-origin-isolated-permission-iframe.https.window.html [wpt.fyi]
- iframe (origin: https://web-platform.test:8443) cross origin isolated (()) permission test:
FAIL - iframe (origin: https://www1.web-platform.test:8443) cross origin isolated (undefined) permission test:
FAIL - iframe (origin: https://www1.web-platform.test:8443) cross origin isolated (*) permission test:
FAIL - iframe (origin: https://www1.web-platform.test:8443) cross origin isolated (self) permission test:
FAIL - iframe (origin: https://www1.web-platform.test:8443) cross origin isolated (()) permission test:
FAIL
- iframe (origin: https://web-platform.test:8443) cross origin isolated (()) permission test:
- /html/cross-origin-embedder-policy/cross-origin-isolated-permission-worker.https.window.html [wpt.fyi]
- shared_worker (withCoopCoep: true) cross origin isolated permission test:
FAIL - dedicated_worker (scheme: https) cross origin isolated (()) permission test:
FAIL - dedicated_worker (scheme: data) cross origin isolated (undefined) permission test:
FAIL - dedicated_worker (scheme: data) cross origin isolated (*) permission test:
FAIL - dedicated_worker (scheme: data) cross origin isolated (self) permission test:
FAIL - dedicated_worker (scheme: blob) cross origin isolated (()) permission test:
FAIL - service_worker (withCoopCoep: true) cross origin isolated permission test:
FAIL
- shared_worker (withCoopCoep: true) cross origin isolated permission test:
- /html/cross-origin-embedder-policy/dedicated-worker.https.html [wpt.fyi]
- COEP: worker inherits COEP from blob URL creator, not owner.:
FAIL - COEP: worker inherits COEP for filesystem URL.:
FAIL - COEP: worker inherits COEP from filesystem URL creator, not owner.:
FAIL
- COEP: worker inherits COEP from blob URL creator, not owner.:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.serviceworker.html [wpt.fyi]
- reflection-credentialless:
FAIL
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.sharedworker.html [wpt.fyi]
- reflection-credentialless:
FAIL
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.worker.html [wpt.fyi]
- reflection-credentialless:
FAIL
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.html [wpt.fyi]
- reflection-credentialless:
FAIL
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.serviceworker-module.html [wpt.fyi]
- reflection-credentialless:
FAIL
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-credentialless.tentative.https.any.sharedworker-module.html [wpt.fyi]
- reflection-credentialless:
FAIL
- reflection-credentialless:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.worker.html [wpt.fyi]
- reflection-require-corp:
FAIL
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.serviceworker-module.html [wpt.fyi]
- reflection-require-corp:
FAIL
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.sharedworker.html [wpt.fyi]
- reflection-require-corp:
FAIL
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.html [wpt.fyi]
- reflection-require-corp:
FAIL
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.serviceworker.html [wpt.fyi]
- reflection-require-corp:
FAIL
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-require-corp.tentative.https.any.sharedworker-module.html [wpt.fyi]
- reflection-require-corp:
FAIL
- reflection-require-corp:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.worker.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.serviceworker-module.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.serviceworker.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.sharedworker-module.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reflection-unsafe-none.tentative.https.any.sharedworker.html [wpt.fyi]
- reflection-unsafe-none:
FAIL
- reflection-unsafe-none:
- /html/cross-origin-embedder-policy/reporting-to-document-reporting-endpoint.https.window.html [wpt.fyi]
- subresource CORP:
FAIL - navigation CORP on cross origin:
FAIL - navigation CORP on same origin:
FAIL
- subresource CORP:
- /html/cross-origin-embedder-policy/reporting-to-endpoint.https.html [wpt.fyi]
- subresource CORP:
FAIL - navigation CORP:
FAIL - COEP violation on nested frame navigation:
FAIL - Two COEP headers, split inside report-to value:
FAIL - Shared worker fetch:
FAIL
- subresource CORP:
- /html/cross-origin-embedder-policy/require-corp-load-from-cache-storage.https.html [wpt.fyi]
- Fetch cross-origin no-cors cors-disabled corp-undefined from network and CacheStorage.:
FAIL - Fetch cross-origin no-cors cors-enabled corp-undefined from network and CacheStorage.:
FAIL
- Fetch cross-origin no-cors cors-disabled corp-undefined from network and CacheStorage.:
- /html/cross-origin-embedder-policy/shared-workers.https.html [wpt.fyi]
- require-corp (derived from blob URL creator):
FAIL - "require-corp" (derived from owner set due to use of local scheme - blob URL):
FAIL - "require-corp" (derived from owner set due to use of local scheme - data URL):
FAIL - default policy (derived from owner set due to use of local scheme - filesystem URL):
FAIL - require-corp (derived from filesystem URL creator):
FAIL - "require-corp" (derived from owner set due to use of local scheme - filesystem URL):
FAIL
- require-corp (derived from blob URL creator):
- /html/cross-origin-embedder-policy/worker-inheritance.sub.https.html [wpt.fyi]
- blob URL shared worker: Cross origin should be blocked.:
FAIL
- blob URL shared worker: Cross origin should be blocked.:
- /html/cross-origin-embedder-policy/credentialless/cross-origin-isolated.window.html [wpt.fyi]:
OK[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-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug] - /html/cross-origin-embedder-policy/multi-globals/workers-coep-report.https.html [wpt.fyi]
- Multiple globals for Worker constructor: COEP reports:
FAIL
- Multiple globals for Worker constructor: COEP reports:
Tests Disabled in Gecko Infrastructure
- /html/cross-origin-embedder-policy/cache-storage-reporting-dedicated-worker.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/cache-storage-reporting-document.https.html [wpt.fyi]:
SKIPlinked bug:Bug 1649264 - /html/cross-origin-embedder-policy/cache-storage-reporting-service-worker.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/cache-storage-reporting-shared-worker.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/credentialless/reporting-navigation.https.window.html [wpt.fyi]:
SKIPlinked bug:Bug 1760782 - /html/cross-origin-embedder-policy/credentialless/reporting-subresource-corp.https.window.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/credentialless/service-worker-coep-credentialless-proxy.https.window.html [wpt.fyi]:
SKIPlinked bug:Bug 1760782 - /html/cross-origin-embedder-policy/credentialless/service-worker-coep-none-proxy.https.window.html [wpt.fyi]:
SKIPlinked bug:Bug 1760782 - /html/cross-origin-embedder-policy/header-parsing.https.html [wpt.fyi]:
SKIPlinked bug:Bug 1661440 - /html/cross-origin-embedder-policy/report-only-require-corp.https.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-linux2404-64-debug,Gecko-windows11-32-25h2-debug] - /html/cross-origin-embedder-policy/reporting-navigation.https.html [wpt.fyi]:
SKIPlinked bug:Bug 1720106 - /html/cross-origin-embedder-policy/reporting-subresource-corp.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/reporting-to-frame-owner.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/reporting-to-worker-owner.https.html [wpt.fyi]:
SKIP - /html/cross-origin-embedder-policy/credentialless/cross-origin-isolated.window.html [wpt.fyi]:
OK[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-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•