Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4ae5265ede6b5b2f5797d18965ebf96a48bae139
      
https://github.com/WebKit/WebKit/commit/4ae5265ede6b5b2f5797d18965ebf96a48bae139
  Author: Charlie Wolfe <[email protected]>
  Date:   2026-10-01 (Thu, 01 Oct 2026)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ProcessSwapOnNavigation.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebViewServerTrustKVC.mm

  Log Message:
  -----------
  Reuse an unused provisional process for a COOP browsing context group switch
https://bugs.webkit.org/show_bug.cgi?id=325850
rdar://188855185

Reviewed by Per Arne Vollan and Ben Nham.

When a cross-site navigation gets a COOP response, we used to unconditionally 
swap its provisional
process for a prewarmed or new one. If that provisional process has never 
committed a load, hosts
nothing else, and only has cookie access for the response's site, it's as clean 
as a prewarmed
process, so the navigation can continue in it.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ProcessSwapOnNavigation.mm

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::canReuseProvisionalProcessForBrowsingContextGroupSwitch):
(WebKit::WebPageProxy::triggerBrowsingContextGroupSwitchForNavigation):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ProcessSwapOnNavigation.mm:
((ProcessSwap, CrossSiteNavigationToCOOPReusesProvisionalProcess)):

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



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

Reply via email to