Closed Bug 2080651 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63534 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327090

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
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-Policy

A 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>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.