[wpt-sync] Sync PR 63534 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327090
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 63534 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63534
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327090
WebKit export from bug: Blob documents created by a document with an opaque origin lose its Document-Isolation-Policy
<pre>
Blob documents created by a document with an opaque origin lose its Document-Isolation-PolicyA blob: document inherits the policy container of the document that created
it, which BlobResourceHandleBase reflects as a Document-Isolation-Policy
header on the response. Since <a href="https://commits.webkit.org/323290@main">323290@main</a> the UI process applies that
header only in a secure context, which it computes from the response's
origin. For a blob URL created by an opaque origin, such as a sandboxed
document, the UI process can't recover the creator's origin, so the
policy was ignored and the blob document could load cross-origin
resources that don't opt in through CORP.Treat the header on a blob: response as inherited: it is only present when
the creator's policy, obtained in a secure context, included it.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327090">https://bugs.webkit.org/show_bug.cgi?id=327090</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=103333
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 39 tests and 8 subtests
Status Summary
Firefox
OK : 1[GitHub] 35[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]
PASS : 123
FAIL : 2[GitHub] 39[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
ERROR: 1
Safari
OK : 1
FAIL : 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/document-isolation-policy/reporting-cache-storage-corp.tentative.https.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/reporting-subresource-corp.tentative.https.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/service-worker-coep-credentialless-proxy.https.tentative.window.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/service-worker-coep-none-proxy.https.tentative.window.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/blob-document-inherits-policy.tentative.https.html [wpt.fyi]
- A blob: document created by a document with a policy inherits it:
FAIL(Safari:FAIL) - A blob: document created by a sandboxed document with a policy inherits it:
FAIL(Safari:FAIL)
- A blob: document created by a document with a policy inherits it:
- /html/document-isolation-policy/credentialless-cache-storage-from-credentialless.https.tentative.window.html?dedicated_worker [wpt.fyi]
- [dedicated_worker] isolate-and-credentialless => isolate-and-require-corp:
FAIL
- [dedicated_worker] isolate-and-credentialless => isolate-and-require-corp:
- /html/document-isolation-policy/credentialless-cache-storage-from-credentialless.https.tentative.window.html?document [wpt.fyi]
- [document] isolate-and-credentialless => isolate-and-require-corp:
FAIL
- [document] isolate-and-credentialless => isolate-and-require-corp:
- /html/document-isolation-policy/credentialless-cache-storage-from-credentialless.https.tentative.window.html?shared_worker [wpt.fyi]
- [shared_worker] isolate-and-credentialless => isolate-and-require-corp:
FAIL
- [shared_worker] isolate-and-credentialless => isolate-and-require-corp:
- /html/document-isolation-policy/credentialless-cache-storage-from-credentialless.https.tentative.window.html?service_worker [wpt.fyi]
- [service_worker] isolate-and-credentialless => isolate-and-require-corp:
FAIL
- [service_worker] isolate-and-credentialless => isolate-and-require-corp:
- /html/document-isolation-policy/credentialless-cache-storage-from-none.https.tentative.window.html?document [wpt.fyi]
- [document] none => isolate-and-credentialless:
FAIL - [document] none => isolate-and-require-corp:
FAIL - [document] none => isolate-and-require-corp (omit):
FAIL
- [document] none => isolate-and-credentialless:
- /html/document-isolation-policy/credentialless-cache-storage-from-none.https.tentative.window.html?shared_worker [wpt.fyi]
- [shared_worker] none => isolate-and-credentialless:
FAIL - [shared_worker] none => isolate-and-require-corp:
FAIL - [shared_worker] none => isolate-and-require-corp (omit):
FAIL
- [shared_worker] none => isolate-and-credentialless:
- /html/document-isolation-policy/credentialless-cache-storage-from-none.https.tentative.window.html?service_worker [wpt.fyi]
- [service_worker] none => isolate-and-credentialless:
FAIL - [service_worker] none => isolate-and-require-corp:
FAIL - [service_worker] none => isolate-and-require-corp (omit):
FAIL
- [service_worker] none => isolate-and-credentialless:
- /html/document-isolation-policy/credentialless-cache-storage-from-none.https.tentative.window.html?dedicated_worker [wpt.fyi]
- [dedicated_worker] none => isolate-and-credentialless:
FAIL - [dedicated_worker] none => isolate-and-require-corp:
FAIL - [dedicated_worker] none => isolate-and-require-corp (omit):
FAIL
- [dedicated_worker] none => isolate-and-credentialless:
- /html/document-isolation-policy/credentialless-cache.tentative.window.html [wpt.fyi]
- The HTTP cache must not be used:
FAIL
- The HTTP cache must not be used:
- /html/document-isolation-policy/credentialless-cross-origin-isolated.tentative.window.html [wpt.fyi]
- Main crossOriginIsolated case::
FAIL - Report-only + enforced::
FAIL
- Main crossOriginIsolated case::
- /html/document-isolation-policy/credentialless-dedicated-worker.https.tentative.window.html [wpt.fyi]
- fetch cross-origin + credentialless worker:
FAIL
- fetch cross-origin + credentialless worker:
- /html/document-isolation-policy/credentialless-fetch.https.tentative.window.html [wpt.fyi]
- fetch cross-origin + no-cors + credentials:include:
FAIL
- fetch cross-origin + no-cors + credentials:include:
- /html/document-isolation-policy/credentialless-link.https.tentative.window.html [wpt.fyi]
- link cross-origin + undefined:
FAIL
- link cross-origin + undefined:
- /html/document-isolation-policy/credentialless-redirect.tentative.window.html [wpt.fyi]
- same-origin -> cross-origin:
FAIL - cross-origin -> same-origin:
FAIL - cross-origin -> cross-origin:
FAIL
- same-origin -> cross-origin:
- /html/document-isolation-policy/credentialless-script.https.tentative.window.html [wpt.fyi]
- script cross-origin + undefined:
FAIL
- script cross-origin + undefined:
- /html/document-isolation-policy/credentialless-service-worker.https.tentative.window.html [wpt.fyi]
- fetch cross-origin + credentialless worker:
FAIL
- fetch cross-origin + credentialless worker:
- /html/document-isolation-policy/credentialless-shared-worker.https.tentative.window.html?request_origin=cross_origin&worker_dip=credentialless&window_dip=credentialless [wpt.fyi]
- credentialless-shared-worker:
FAIL
- credentialless-shared-worker:
- /html/document-isolation-policy/credentialless-shared-worker.https.tentative.window.html?request_origin=cross_origin&worker_dip=credentialless&window_dip=none [wpt.fyi]
- credentialless-shared-worker:
FAIL
- credentialless-shared-worker:
- /html/document-isolation-policy/credentialless-video.https.tentative.window.html [wpt.fyi]
- video cross-origin + undefined:
FAIL
- video cross-origin + undefined:
- /html/document-isolation-policy/isolate-and-require-corp-load-from-cache-storage.tentative.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/document-isolation-policy/isolate-and-require-corp.tentative.https.html [wpt.fyi]
- "isolate-and-require-corp" top-level: fetch() to cross-origin response without CORP should fail:
FAIL
- "isolate-and-require-corp" top-level: fetch() to cross-origin response without CORP should fail:
- /html/document-isolation-policy/shared-workers.tentative.https.html [wpt.fyi]
- "isolate-and-require-corp" (derived from response):
FAIL - isolate-and-require-corp (derived from blob URL creator):
FAIL - "isolate-and-require-corp" (derived from owner set due to use of local scheme - blob URL):
FAIL - "isolate-and-require-corp" (derived from owner set due to use of local scheme - data URL):
FAIL
- "isolate-and-require-corp" (derived from response):
Tests Disabled in Gecko Infrastructure
- /html/document-isolation-policy/reporting-cache-storage-corp.tentative.https.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/reporting-subresource-corp.tentative.https.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/service-worker-coep-credentialless-proxy.https.tentative.window.html [wpt.fyi]:
SKIP - /html/document-isolation-policy/service-worker-coep-none-proxy.https.tentative.window.html [wpt.fyi]:
SKIP
https://hg.mozilla.org/mozilla-central/rev/d03b9b780b08
https://hg.mozilla.org/mozilla-central/rev/5b304fa76775
Description
•