Closed Bug 2085165 Opened 1 month ago Closed 24 days ago

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

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

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

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

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

WebKit export from bug: A frame that a replace navigation moves to another process has no navigation API entries

<pre>
A frame that a replace navigation moves to another process has no navigation API entries

With site isolation, a subframe navigation that doesn't add a session history entry, such as one
from location.replace(), updates the frame's current history item. When the navigation moves the
frame to another process, that process has no history item for the frame, and as the frame's parent
is in another process, it doesn't create one either. So the new document's navigation.entries() was
empty and navigation.activation was null. Since <a href="https://commits.webkit.org/324264@main">324264@main</a> this also happens for
navigation.navigate() with history: "replace".

For a main frame, the UI process gives the new process the current history item before such a load,
with a SetCurrentHistoryItemForReattach message. For a subframe it now passes the item in the
LoadParameters of the load, so the load updates the frame's item as it does when the frame stays in
its process. Using LoadParameters for the main frame will happen in subsequent change.

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

PR 63961 applied with additional changes from upstream: 02f5da61b96a03debc12e3c6d37614ac504fd2d2, ee314e68f97daf421fcefd2448968efa77512014

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

CI Results

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

Total 227 tests

Status Summary

Firefox

OK : 2[GitHub] 217[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 218[Gecko-android-em-14-x86_64-debug-geckoview] 219[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 7[GitHub] 529[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] 530[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 2[GitHub] 100[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 101[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2
NOTRUN : 5

Chrome

OK : 3
PASS : 12
FAIL : 3

Safari

OK : 3
PASS : 12
FAIL : 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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