Bug 288162

Summary: [Site Isolation] Session restore in a new WKWebView breaks when restoring from an existing WKWebView
Product: WebKit Reporter: Charlie Wolfe <charliew>
Component: HistoryAssignee: Charlie Wolfe <charliew>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Charlie Wolfe
Reported 2025-02-20 16:52:14 PST
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.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-02-20 16:52:25 PST
Charlie Wolfe
Comment 2 2025-02-20 16:53:06 PST
EWS
Comment 3 2025-02-21 15:27:38 PST
Committed 290832@main (5fb0bc3dd426): <https://commits.webkit.org/290832@main> Reviewed commits have been landed. Closing PR #41026 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.