Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 938ab02fbaf711c6377e54fd4fb681c92b0577dc
      
https://github.com/WebKit/WebKit/commit/938ab02fbaf711c6377e54fd4fb681c92b0577dc
  Author: Basuke Suzuki <[email protected]>
  Date:   2026-04-30 (Thu, 30 Apr 2026)

  Changed paths:
    M Source/WebKit/UIProcess/BrowsingContextGroup.cpp
    M Source/WebKit/UIProcess/ProvisionalPageProxy.cpp
    M Source/WebKit/UIProcess/ProvisionalPageProxy.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp

  Log Message:
  -----------
  [Site Isolation] Defer transitionPageToRemotePage to after BFCache suspension 
decision
https://bugs.webkit.org/show_bug.cgi?id=313709
rdar://175905576

Reviewed by Sihui Liu.

During a forward navigation with process swap, delay the 
LoadDidCommitInAnotherProcess
IPC and transitionPageToRemotePage() call from 
ProvisionalPageProxy::didCommitLoadForFrame()
to WebPageProxy::commitProvisionalPage(), executing them only when BFCache 
suspension does
not happen.

A BFCache-suspended page is frozen in the BackForwardCache, not transitioning 
to "remote."
Skipping the transition for suspended pages avoids creating a stale 
RemotePageProxy that
would later need special cleanup during restoration.

No new tests (no behavior change, feature flag is OFF by default).

* Source/WebKit/UIProcess/BrowsingContextGroup.cpp:
(WebKit::BrowsingContextGroup::transitionPageToRemotePage):
* Source/WebKit/UIProcess/ProvisionalPageProxy.cpp:
(WebKit::ProvisionalPageProxy::didCommitLoadForFrame):
* Source/WebKit/UIProcess/ProvisionalPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::commitProvisionalPage):

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



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

Reply via email to