[wpt-sync] Sync PR 63938 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328190
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| 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 entryWhen 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>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=109100
| Assignee | ||
Comment 2•1 month ago
|
||
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
- /html/browsers/history/the-location-interface/location-replace-cross-site.html [wpt.fyi]:
TIMEOUT- location.replace() of a popup by its cross-site child:
TIMEOUT - location.replace() of a cross-site popup:
NOTRUN - location.replace() of a popup by the cross-site popup it opened:
NOTRUN - Setting location.href of a cross-site iframe:
NOTRUN - Setting location.href of a cross-site popup:
NOTRUN
- location.replace() of a popup by its cross-site child:
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
- <object> with referrerpolicy='no-referrer' ancestorOrigins must strictly equal [window.origin]:
- /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)
- location.replace() of a popup by its cross-site child:
- /html/browsers/history/the-location-interface/no-browsing-context.window.html [wpt.fyi]
- Setting
hreftohttps://example.com/of aLocationobject sans browsing context is a no-op:FAIL - Setting
hrefto/of aLocationobject sans browsing context is a no-op:FAIL - Setting
hreftohttp://test:test/of aLocationobject sans browsing context is a no-op:FAIL - Setting
hreftotest testof aLocationobject sans browsing context is a no-op:FAIL - Setting
hreftotest:testof aLocationobject sans browsing context is a no-op:FAIL - Setting
hreftochrome:failof aLocationobject sans browsing context is a no-op:FAIL - Setting
protocoltohttpof aLocationobject sans browsing context is a no-op:FAIL - Setting
protocoltoaboutof aLocationobject sans browsing context is a no-op:FAIL - Setting
protocoltotestof aLocationobject sans browsing context is a no-op:FAIL - Setting
pathnameto/of aLocationobject sans browsing context is a no-op:FAIL - Setting
pathnametoxof aLocationobject sans browsing context is a no-op:FAIL - Setting
searchtotestof aLocationobject sans browsing context is a no-op:FAIL - Getting
originof aLocationobject sans browsing context should be "null":FAIL - Invoking
assignwithabout:blankon aLocationobject sans browsing context is a no-op:FAIL - Invoking
assignwithhttps://example.com/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
assignwith/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
assignwithhttp://test:test/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
assignwithtest teston aLocationobject sans browsing context is a no-op:FAIL - Invoking
assignwithtest:teston aLocationobject sans browsing context is a no-op:FAIL - Invoking
assignwithchrome:failon aLocationobject sans browsing context is a no-op:FAIL - Invoking
replacewithabout:blankon aLocationobject sans browsing context is a no-op:FAIL - Invoking
replacewithhttps://example.com/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
replacewith/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
replacewithhttp://test:test/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
replacewithtest teston aLocationobject sans browsing context is a no-op:FAIL - Invoking
replacewithtest:teston aLocationobject sans browsing context is a no-op:FAIL - Invoking
replacewithchrome:failon aLocationobject sans browsing context is a no-op:FAIL - Invoking
reloadwithabout:blankon aLocationobject sans browsing context is a no-op:FAIL - Invoking
reloadwithhttps://example.com/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
reloadwith/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
reloadwithhttp://test:test/on aLocationobject sans browsing context is a no-op:FAIL - Invoking
reloadwithtest teston aLocationobject sans browsing context is a no-op:FAIL - Invoking
reloadwithtest:teston aLocationobject sans browsing context is a no-op:FAIL - Invoking
reloadwithchrome:failon aLocationobject sans browsing context is a no-op:FAIL
- Setting
- /html/browsers/history/the-location-interface/per-global.window.html [wpt.fyi]
- Navigating from the initial about:blank must not replace window.location:
FAIL
- Navigating from the initial about:blank must not replace window.location:
- /html/browsers/history/the-location-interface/reload_document_write_onload.html [wpt.fyi]
- Reload document with document.written content written in load event:
FAIL
- Reload document with document.written content written in load event:
- /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
- location.assign with click during load:
- /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
- If forward pruning clobbers the target of a traverse, abort:
- /navigation-api/navigation-methods/reload-service-worker-fetch-event.html [wpt.fyi]
- reload() appears as a reload to service worker fetch event handlers:
FAIL
- reload() appears as a reload to service worker fetch event handlers:
- /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]
- navigation.traverseTo() should work in an iframe that has navigated across origins:
Tests Disabled in Gecko Infrastructure
- /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/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] - /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]
Comment 4•24 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f3dc16d9e521
https://hg.mozilla.org/mozilla-central/rev/8861622ebc21
Description
•