Closed Bug 2078040 Opened 1 month ago Closed 1 month ago

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

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 63248 into mozilla-central (this bug is closed when the sync is complete).

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

Anne van Kesteren <annevk@annevk.nl> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326255

WebKit export from bug: Implement the cross-origin-isolated permissions policy feature

<pre>
Implement the cross-origin-isolated permissions policy feature

A document's cross-origin isolated capability requires both that its agent
cluster is cross-origin isolated and that the document is allowed to use the
"cross-origin-isolated" feature, whose default allowlist is 'self'. We did not
implement the feature, so every cross-origin iframe in a cross-origin isolated
page reported crossOriginIsolated as true and could serialize
SharedArrayBuffers, without the embedder delegating that capability through
allow="cross-origin-isolated".

We do not support the Permissions-Policy header, so the subtests that rely on
it to disable the feature remain failures.

Update window-failure.https.html from upstream, which delegates the capability
to its cross-site iframe so the failure is due to the agent cluster mismatch.
Do the same for the cross-site iframe in the API test added in <a href="https://commits.webkit.org/322609@main">322609@main</a>.

window-domain-failure.https.sub.html expected SharedArrayBuffer to be absent in
a cross-origin iframe of a cross-origin isolated page. HTML only removes it
when the agent cluster's cross-origin isolation mode is "none", which is not
the case there, so it now expects it to be present. In particular the capability
is not a factor.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326255">https://bugs.webkit.org/show_bug.cgi?id=326255</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 23 tests and 16 subtests

Status Summary

Firefox

OK : 1[GitHub] 19[Gecko-windows11-64-25h2-debug] 20[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
PASS: 59[Gecko-windows11-64-25h2-debug] 61[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 3[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 : 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

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.