Bug 315606

Summary: [BFCache] Add ShouldRestoreFromBackForwardCache and wasFromBackForwardCache plumbing
Product: WebKit Reporter: Basuke Suzuki <basuke>
Component: Page LoadingAssignee: Basuke Suzuki <basuke>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Basuke Suzuki
Reported 2026-05-26 14:57:55 PDT
Preparation for UIP-driven BFCache restore (bug 313657). No behavior change. Adds a ShouldRestoreFromBackForwardCache enum and threads it as a parameter from Page::goToItem through HistoryController and FrameLoader down to continueLoadAfterNavigationPolicy, so the UIProcess can later direct the WebProcess to perform a BFCache restore even when the WebProcess-side cache probe is racing. All current callers pass ShouldRestoreFromBackForwardCache::No; continueLoadAfterNavigationPolicy does not consult the new argument yet. Also adds wasFromBackForwardCache to Messages::WebPageProxy::DidCommitLoadForFrame, sourced in WebProcess from FrameLoader::loadingFromCachedPage() (newly exposed as a public accessor). The UIProcess receiver carries the value through commit dispatchers but does not act on it yet.
Attachments
Basuke Suzuki
Comment 1 2026-05-26 16:04:00 PDT
Basuke Suzuki
Comment 2 2026-05-26 16:04:17 PDT
EWS
Comment 3 2026-05-26 20:26:30 PDT
Committed 313940@main (e97a07211a62): <https://commits.webkit.org/313940@main> Reviewed commits have been landed. Closing PR #65724 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.