WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
315606
[BFCache] Add ShouldRestoreFromBackForwardCache and wasFromBackForwardCache plumbing
https://bugs.webkit.org/show_bug.cgi?id=315606
Summary
[BFCache] Add ShouldRestoreFromBackForwardCache and wasFromBackForwardCache p...
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
Add attachment
proposed patch, testcase, etc.
Basuke Suzuki
Comment 1
2026-05-26 16:04:00 PDT
<
rdar://problem/177985347
>
Basuke Suzuki
Comment 2
2026-05-26 16:04:17 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/65724
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.
Top of Page
Format For Printing
XML
Clone This Bug