Closed Bug 2084670 Opened 1 month ago Closed 24 days ago

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

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

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

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

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

WebKit export from bug: location.<!---->replace(<!---->)<!----> of a frame in another process adds a session history entry

<pre>
location.replace() of a frame in another process adds a session history entry

When a document navigates a frame in another process, the UI process hands the
navigation to the frame's process once its policy is decided. When the frame
stays in its process, which with site isolation's shared process is the usual
case for a cross-site frame, that hand-off didn't forward the navigation's
lockHistory and lockBackForwardList. So location.replace() added a session
history entry.

The navigation also lost its history handling on the way to the UI process.
Whichever process it ended up in, the new document's
navigation.activation.navigationType was "push" after location.replace(). And
navigation.navigate() with history: "replace" didn't lock the back/forward list
of its navigation action, so it added an entry when it moved to another process.

The hand-off now forwards the lock flags. A NavigationAction made from a
FrameLoadRequest now takes the request's history handling, so the navigation
action WebRemoteFrameClient::changeLocation() sends to the UI process keeps it.
A NavigationAPIReplace load locks the back/forward list of its navigation
action.

This doesn't change how "auto" is resolved for a navigation from another
process, for instance for a frame that isn't completely loaded yet.

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

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

CI Results

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

Total 184 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 178[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 179[Gecko-android-em-14-x86_64-debug-geckoview] 180[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 : 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 7[GitHub] 379[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-windows11-32-25h2-debug] 380[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 39[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 40[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 41[Gecko-windows11-32-25h2-debug]
TIMEOUT: 2
NOTRUN : 4

Chrome

OK : 2
PASS : 12

Safari

OK : 2
PASS : 12

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

  • /html/browsers/history/the-location-interface/location_replace_session_history.html [wpt.fyi]: SKIP
  • /navigation-api/navigation-methods/traverseTo-navigates-multiple-iframes.html [wpt.fyi]: SKIP
  • /html/browsers/history/the-location-interface/location-ancestor-origins-referrerpolicy-unsupported-elements.html [wpt.fyi]
    • <object> with referrerpolicy='no-referrer' ancestorOrigins must strictly equal [window.origin]: FAIL
  • /html/browsers/history/the-location-interface/location-replace-cross-site.html [wpt.fyi]: TIMEOUT (Chrome: OK, Safari: OK)
    • location.replace() of a popup by its cross-site child: TIMEOUT (Chrome: PASS, Safari: PASS)
    • location.replace() of a cross-site popup: NOTRUN (Chrome: PASS, Safari: PASS)
    • location.replace() of a popup by the cross-site popup it opened: NOTRUN (Chrome: PASS, Safari: PASS)
    • Setting location.href of a cross-site iframe: NOTRUN (Chrome: PASS, Safari: PASS)
    • Setting location.href of a cross-site popup: NOTRUN (Chrome: PASS, Safari: PASS)
  • /html/browsers/history/the-location-interface/no-browsing-context.window.html [wpt.fyi]
    • Setting href to https://example.com/ of a Location object sans browsing context is a no-op: FAIL
    • Setting href to / of a Location object sans browsing context is a no-op: FAIL
    • Setting href to http://test:test/ of a Location object sans browsing context is a no-op: FAIL
    • Setting href to test test of a Location object sans browsing context is a no-op: FAIL
    • Setting href to test:test of a Location object sans browsing context is a no-op: FAIL
    • Setting href to chrome:fail of a Location object sans browsing context is a no-op: FAIL
    • Setting protocol to http of a Location object sans browsing context is a no-op: FAIL
    • Setting protocol to about of a Location object sans browsing context is a no-op: FAIL
    • Setting protocol to test of a Location object sans browsing context is a no-op: FAIL
    • Setting pathname to / of a Location object sans browsing context is a no-op: FAIL
    • Setting pathname to x of a Location object sans browsing context is a no-op: FAIL
    • Setting search to test of a Location object sans browsing context is a no-op: FAIL
    • Getting origin of a Location object sans browsing context should be "null": FAIL
    • Invoking assign with about:blank on a Location object sans browsing context is a no-op: FAIL
    • Invoking assign with https://example.com/ on a Location object sans browsing context is a no-op: FAIL
    • Invoking assign with / on a Location object sans browsing context is a no-op: FAIL
    • Invoking assign with http://test:test/ on a Location object sans browsing context is a no-op: FAIL
    • Invoking assign with test test on a Location object sans browsing context is a no-op: FAIL
    • Invoking assign with test:test on a Location object sans browsing context is a no-op: FAIL
    • Invoking assign with chrome:fail on a Location object sans browsing context is a no-op: FAIL
    • Invoking replace with about:blank on a Location object sans browsing context is a no-op: FAIL
    • Invoking replace with https://example.com/ on a Location object sans browsing context is a no-op: FAIL
    • Invoking replace with / on a Location object sans browsing context is a no-op: FAIL
    • Invoking replace with http://test:test/ on a Location object sans browsing context is a no-op: FAIL
    • Invoking replace with test test on a Location object sans browsing context is a no-op: FAIL
    • Invoking replace with test:test on a Location object sans browsing context is a no-op: FAIL
    • Invoking replace with chrome:fail on a Location object sans browsing context is a no-op: FAIL
    • Invoking reload with about:blank on a Location object sans browsing context is a no-op: FAIL
    • Invoking reload with https://example.com/ on a Location object sans browsing context is a no-op: FAIL
    • Invoking reload with / on a Location object sans browsing context is a no-op: FAIL
    • Invoking reload with http://test:test/ on a Location object sans browsing context is a no-op: FAIL
    • Invoking reload with test test on a Location object sans browsing context is a no-op: FAIL
    • Invoking reload with test:test on a Location object sans browsing context is a no-op: FAIL
    • Invoking reload with chrome:fail on a Location object sans browsing context is a no-op: FAIL
  • /html/browsers/history/the-location-interface/per-global.window.html [wpt.fyi]
    • Navigating from the initial about:blank must not replace window.location: FAIL
  • /html/browsers/history/the-location-interface/reload_document_write_onload.html [wpt.fyi]
    • Reload document with document.written content written in load event: FAIL
  • /html/browsers/history/the-location-interface/scripted_click_location_assign_during_load.html [wpt.fyi]: OK [Gecko-android-em-14-x86_64-debug-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], SKIP [Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
    • location.assign with click during load: FAIL
  • /html/browsers/history/the-location-interface/security_location_0.htm [wpt.fyi]: OK [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], SKIP [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]
  • /navigation-api/navigation-methods/forward-to-pruned-entry.html [wpt.fyi]
    • If forward pruning clobbers the target of a traverse, abort: FAIL
  • /navigation-api/navigation-methods/reload-service-worker-fetch-event.html [wpt.fyi]
    • reload() appears as a reload to service worker fetch event handlers: FAIL
  • /navigation-api/navigation-methods/traverseTo-with-cross-origin-in-history.html [wpt.fyi]
    • navigation.traverseTo() should work in an iframe that has navigated across origins: FAIL [Gecko-windows11-32-25h2-debug], PASS [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-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

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.