Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 95087ee3081bee456f186e4d69df2348c77cbf6b
https://github.com/WebKit/WebKit/commit/95087ee3081bee456f186e4d69df2348c77cbf6b
Author: Basuke Suzuki <[email protected]>
Date: 2026-03-05 (Thu, 05 Mar 2026)
Changed paths:
M LayoutTests/http/tests/navigation/back-iframe-no-bf-cache.html
M LayoutTests/http/tests/navigation/resources/back-iframe-other.html
M LayoutTests/http/tests/navigation/resources/back-iframe-popup.html
A
LayoutTests/http/tests/site-isolation/history/back-iframe-cross-site-no-bf-cache-expected.txt
A
LayoutTests/http/tests/site-isolation/history/back-iframe-cross-site-no-bf-cache.html
M LayoutTests/http/tests/site-isolation/history/back-iframe-no-bf-cache.html
M Source/WebKit/UIProcess/API/APINavigation.h
M Source/WebKit/UIProcess/WebPageProxy.cpp
Log Message:
-----------
[Site Isolation] Support cross-site process swap for UIProcess-driven
back/forward child frame navigation
https://bugs.webkit.org/show_bug.cgi?id=309110
rdar://171032434
Reviewed by Charlie Wolfe.
This is a follow-up to https://bugs.webkit.org/show_bug.cgi?id=308562 which
routed
same-site child frame back/forward navigations through UIProcess when
UseUIProcessForBackForwardItemLoading is enabled.
When a child frame's back/forward navigation requires a cross-site process
swap, send
GoToBackForwardItem with the child frame's FrameState to the new process so it
can perform
a proper history navigation with full state restoration instead of a plain
LoadRequest.
In decidePolicyForNavigationAction, the FrameState found for back/forward child
frame
navigations is now stored on the Navigation object in addition to the
PolicyDecision.
This allows continueNavigationInNewProcess to retrieve it when a process swap
is needed.
The two consumers are mutually exclusive: the completionHandler sets it on
PolicyDecision
for same-site navigations (PolicyAction::Use), while the Navigation object
carries it for
cross-site process swaps (PolicyAction::LoadWillContinueInAnotherProcess).
Test: http/tests/site-isolation/history/back-iframe-cross-site-no-bf-cache.html
* LayoutTests/http/tests/navigation/back-iframe-no-bf-cache.html:
* LayoutTests/http/tests/navigation/resources/back-iframe-other.html:
* LayoutTests/http/tests/navigation/resources/back-iframe-popup.html:
*
LayoutTests/http/tests/site-isolation/history/back-iframe-cross-site-no-bf-cache-expected.txt:
Added.
*
LayoutTests/http/tests/site-isolation/history/back-iframe-cross-site-no-bf-cache.html:
Copied from
LayoutTests/http/tests/site-isolation/history/back-iframe-no-bf-cache.html.
* LayoutTests/http/tests/site-isolation/history/back-iframe-no-bf-cache.html:
* Source/WebKit/UIProcess/API/APINavigation.h:
(API::Navigation::backForwardFrameState const):
(API::Navigation::setBackForwardFrameState):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::continueNavigationInNewProcess):
(WebKit::WebPageProxy::decidePolicyForNavigationAction):
Canonical link: https://commits.webkit.org/308761@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications