Closed Bug 2084006 Opened 1 month ago Closed 25 days ago

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

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

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

WebKit export from bug: A cross-<!---->document navigation from another agent cluster fires navigate

<pre>
A cross-document navigation from another agent cluster fires navigate

HTML only fires navigate for a cross-document navigation when the initiator is same origin-domain
with the navigated document, so a document only gets to intercept or cancel navigations started by
documents that could script it anyway. Before Document-Isolation-Policy that also meant the same
agent cluster. Now a same-origin document can be in another agent cluster, where it can't script
the navigated document, yet <a href="https://commits.webkit.org/323812@main">323812@main</a> fired navigate for it when it was in another process.

As in Chromium, a cross-document navigation now only fires navigate when its initiator passes
IsPlatformObjectSameOrigin, which includes the agent cluster check. Documents of one agent cluster
share a process, so an initiator in another process never does. The exception is a site that
Lockdown Mode gives a second process in the same browsing context group, as both processes still
get the same agent cluster. A follow-up will key agent clusters on Lockdown Mode and similar modes.

So navigations from another process only fire navigate for fragment navigations, which fire it
whoever started them, with sourceElement nulled across agent clusters. The handling of cancelled
cross-document navigations from another process goes away, along with
SiteIsolation.CancelledNavigateEventFromAnotherProcessLetsParentFinishLoading, and form data no
longer needs to cross processes. Within a process, FrameLoader now uses IsPlatformObjectSameOrigin
for this check too.

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=328054">https://bugs.webkit.org/show_bug.cgi?id=328054</a>
</pre>

PR 63879 applied with additional changes from upstream: 6cd3f1c39e2aec3d58f140aa0ff2991d79eb9991

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

CI Results

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

Total 45 tests and 8 subtests

Status Summary

Firefox

OK : 1[GitHub] 41[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 7[GitHub] 160[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 18[GitHub] 75[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

PASS : 8
TIMEOUT: 2
NOTRUN : 16

Safari

PASS : 5
FAIL : 14
TIMEOUT: 2
NOTRUN : 5

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: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.