Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Site Isolation] Session restore in a new WKWebView breaks when resto…
…ring from an existing WKWebView https://bugs.webkit.org/show_bug.cgi?id=288162 rdar://145257058 Reviewed by Alex Christensen. There's logic in WebPageProxy::goToBackForwardItem to send FrameState to the right frame process, but we didn’t check if the frame actually belonged to the current page. So, after restoring session state from another WKWebView, we could end up trying to send FrameState to a process belonging to a different page. We should make sure the frame belongs to the current page before sending IPC to its process. * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::goToBackForwardItem): * Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm: (TestWebKitAPI::TEST(SiteIsolation, RestoreSessionFromAnotherWebView)): Canonical link: https://commits.webkit.org/290832@main
- Loading branch information