Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f27ec28df1b8e1e9b3f4d44f4ecfeeb0f0d0d0fb
      
https://github.com/WebKit/WebKit/commit/f27ec28df1b8e1e9b3f4d44f4ecfeeb0f0d0d0fb
  Author: Ben Nham <n...@apple.com>
  Date:   2025-10-07 (Tue, 07 Oct 2025)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKProcessPool.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKProcessPoolPrivate.h
    M Source/WebKit/UIProcess/WebProcessCache.cpp
    M Source/WebKit/UIProcess/WebProcessCache.h
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm

  Log Message:
  -----------
  Fix issue with removing shared processes from process cache
https://bugs.webkit.org/show_bug.cgi?id=300344
rdar://162146236

Reviewed by Ryosuke Niwa.

When a shared process (see 300964@main) is removed from the process cache, it 
causes a crash. Fix
this and add a test.

Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm
* Source/WebKit/UIProcess/API/Cocoa/WKProcessPool.mm:
(-[WKProcessPool _setCachedProcessLifetimeForTesting:]):
* Source/WebKit/UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
* Source/WebKit/UIProcess/WebProcessCache.cpp:
(WebKit::WebProcessCache::setCachedProcessLifetimeForTesting):
(WebKit::WebProcessCache::WebProcessCache):
(WebKit::WebProcessCache::addProcessIfPossible):
(WebKit::WebProcessCache::clear):
(WebKit::WebProcessCache::clearAllProcessesForSession):
(WebKit::WebProcessCache::setApplicationIsActive):
(WebKit::WebProcessCache::removeProcess):
(WebKit::WebProcessCache::CachedProcess::create):
(WebKit::WebProcessCache::CachedProcess::CachedProcess):
* Source/WebKit/UIProcess/WebProcessCache.h:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm:
(TestWebKitAPI::(SiteIsolation, SharedProcessWebProcessCacheCanEvict)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to