Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 211bc109ac55a4688234bdb31bbbb235eba5c12a
      
https://github.com/WebKit/WebKit/commit/211bc109ac55a4688234bdb31bbbb235eba5c12a
  Author: Basuke Suzuki <[email protected]>
  Date:   2026-05-21 (Thu, 21 May 2026)

  Changed paths:
    M Source/WebKit/Shared/SessionState.cpp
    M Source/WebKit/Shared/SessionState.h
    M Source/WebKit/Shared/SessionState.serialization.in
    M Source/WebKit/WebProcess/WebCoreSupport/SessionStateConversion.cpp

  Log Message:
  -----------
  [BFCache] Remove unused FrameState::hasCachedPage
https://bugs.webkit.org/show_bug.cgi?id=315298
rdar://177631271

Reviewed by Vitor Roriz.

After 313625@main, the WebBackForwardCacheEntry lifecycle is driven by
explicit IPCs (DidCacheItem / DidEvictCachedItem /
DidRestoreFromBackForwardCache) instead of relaying through the
FrameState::hasCachedPage snapshot. The boolean flag has one writer and
zero readers across C++ and Swift; this change removes it.

HistoryItem::isInBackForwardCache() and hasCachedPageExpired() remain.
They are live BackForwardCache queries still used in FrameLoader, the
ShouldGoToBackForwardListItem IPC, and the WebKitLegacy
_isInBackForwardCache / _hasCachedPageExpired SPI.

* Source/WebKit/Shared/SessionState.cpp:
(WebKit::FrameState::FrameState):
(WebKit::FrameState::copy):
* Source/WebKit/Shared/SessionState.h:
* Source/WebKit/Shared/SessionState.serialization.in:
* Source/WebKit/WebProcess/WebCoreSupport/SessionStateConversion.cpp:
(WebKit::toFrameState):

Canonical link: https://commits.webkit.org/313683@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to