Bug 315606
| Summary: | [BFCache] Add ShouldRestoreFromBackForwardCache and wasFromBackForwardCache plumbing | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Basuke Suzuki <basuke> |
| Component: | Page Loading | Assignee: | 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
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
<rdar://problem/177985347>
Basuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/65724
EWS
Committed 313940@main (e97a07211a62): <https://commits.webkit.org/313940@main>
Reviewed commits have been landed. Closing PR #65724 and removing active labels.