Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cd134386b5e86ffd45a3574f8bfcb4b5e160053b
https://github.com/WebKit/WebKit/commit/cd134386b5e86ffd45a3574f8bfcb4b5e160053b
Author: Ryosuke Niwa <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M Source/WebKit/UIProcess/WebProcessCache.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm
Log Message:
-----------
Crash in WebProcessCache::evictAtRandomIfNeeded()
https://bugs.webkit.org/show_bug.cgi?id=300279
Reviewed by Ben Nham.
The bug was caused by WebProcessCache::evictAtRandomIfNeeded always assuming
m_sharedProcessesPerSite
to be not empty, which isn't necessarily the case. Fixed the bug by adding
isEmpty check. Also added
the same check for m_processesPerSite for extra robustness.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm
* Source/WebKit/UIProcess/WebProcessCache.cpp:
(WebKit::WebProcessCache::evictAtRandomIfNeeded):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm:
(TestWebKitAPI::(SiteIsolation, WebProcessCacheCrashWithZeroSharedProcess)):
Canonical link: https://commits.webkit.org/301117@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes