Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d2ff3d1ba6f889262b69f02b1bd44ec06e5b8da0
https://github.com/WebKit/WebKit/commit/d2ff3d1ba6f889262b69f02b1bd44ec06e5b8da0
Author: Rupin Mittal <[email protected]>
Date: 2025-11-19 (Wed, 19 Nov 2025)
Changed paths:
M Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp
Log Message:
-----------
StabilityTracer: WebAutomationSession::deleteAllCookies must not send null
strings over IPC
https://bugs.webkit.org/show_bug.cgi?id=302488
rdar://164526691
Reviewed by BJ Burg.
It seems that in NetworkStorageSession::deleteCookiesForHostnames, one of the
Strings
in hostnames is a null String, so we crash when trying to add it to
hostnamesSet.
>From the crash trace, hostnames is coming from the IPC sent to
WebCookieManager::deleteCookiesForHostnames which is sent from
HTTPCookieStore::deleteCookiesForHostnames, which is called from
WebAutomationSession::deleteAllCookies.
In WebAutomationSession::deleteAllCookies, if host is a null String (and it
seems
possible that the URL returned by PageLoadState::activeURL could have a null
host),
then hostnames will contain null Strings.
To fix this, we ensure that if host is a null String, the IPC is not sent.
* Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::deleteAllCookies):
Canonical link: https://commits.webkit.org/303282@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications