Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bd4ce6001e93131ec13bdeb5434ae4deab2c2718
https://github.com/WebKit/WebKit/commit/bd4ce6001e93131ec13bdeb5434ae4deab2c2718
Author: Ben Nham <[email protected]>
Date: 2026-09-01 (Tue, 01 Sep 2026)
Changed paths:
M Source/WebKit/UIProcess/BrowsingContextGroup.cpp
M Source/WebKit/UIProcess/BrowsingContextGroup.h
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm
Log Message:
-----------
[Site Isolation] Don't use crashed processes in BrowsingContextGroup
https://bugs.webkit.org/show_bug.cgi?id=322868
rdar://186115818
Reviewed by Sihui Liu and Per Arne Vollan.
BrowsingContextGroup returns potentially terminated processes in both
sharedProcessForSite and
processForSite. Fix this by not handing back terminated processes.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm
* Source/WebKit/UIProcess/BrowsingContextGroup.cpp:
(WebKit::BrowsingContextGroup::sharedProcessForSite):
(WebKit::BrowsingContextGroup::ensureProcessForSite):
(WebKit::BrowsingContextGroup::liveSharedProcess):
(WebKit::BrowsingContextGroup::clearSharedProcess):
(WebKit::BrowsingContextGroup::processForSite):
(WebKit::BrowsingContextGroup::processDidTerminate):
(WebKit::BrowsingContextGroup::removeFrameProcess):
* Source/WebKit/UIProcess/BrowsingContextGroup.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::resetStateAfterProcessExited):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::(SiteIsolation, SharedProcessNotReusedAfterCrash)):
(TestWebKitAPI::(SiteIsolation, SharedProcessMainFrameNotReusedAfterCrash)):
(TestWebKitAPI::(SiteIsolation,
SharedProcessShutsDownWhenLastRemoteFrameIsRemoved)):
Canonical link: https://commits.webkit.org/320297@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications