Closed Bug 2079563 Opened 1 month ago Closed 1 month ago

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

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63353 into mozilla-central (this bug is closed when the sync is complete).

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

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

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

WebKit export from bug: Separate same-origin documents with a different Document-Isolation-Policy into different agent clusters

<pre>
Separate same-origin documents with a different Document-Isolation-Policy into different agent clusters

Same-origin documents can now be in different agent clusters, so an origin
check no longer tells whether one document can reach another. Building on
<a href="https://commits.webkit.org/322736@main">322736@main</a>, the UI process assigns each document an AgentClusterIdentifier,
minted per browsing context group from the agent cluster key: site or origin,
plus the cross-origin isolation key where one applies.

The identifier, origin keying, and policy travel as an AgentClusterAssignment.
A preliminary one is made at navigation action time and replaced at response
time, when the policy headers are parsed. Loads that continue in another
process get theirs through LoadParameters and GoToBackForwardItemParameters,
and the injected bundle can no longer skip the response decision for
documents that need it. Loads without a response decision now also record
their historical agent cluster keying. The WebContent process no longer needs
the BrowsingContextGroupIdentifier.

isPlatformObjectSameOrigin() adds the agent cluster check to
isSameOriginDomain() wherever one document can reach another's objects or run
script in it, including javascript: URLs and the navigate event's
sourceElement. Universal access bypasses it. The initial about:blank Window is
not reused across agent clusters, and javascript: URL and XSLT results keep
the identifier of the document they replace.

See <a href="https://github.com/WICG/document-isolation-policy/issues/11">https://github.com/WICG/document-isolation-policy/issues/11</a>

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326665">https://bugs.webkit.org/show_bug.cgi?id=326665</a>
</pre>

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 55 tests and 8 subtests

Status Summary

Firefox

OK : 4[GitHub] 51[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 : 27[GitHub] 164[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]
FAIL : 19[GitHub] 56[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 : 3
PASS : 36
FAIL : 1
TIMEOUT: 2
NOTRUN : 8

Safari

OK : 4
PASS : 26
FAIL : 20

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.