Branch: refs/heads/webkitglib/2.50
Home: https://github.com/WebKit/WebKit
Commit: 57c2eb4b3e6a46b2f1a03c1fd507ce62c17f7597
https://github.com/WebKit/WebKit/commit/57c2eb4b3e6a46b2f1a03c1fd507ce62c17f7597
Author: Rupin Mittal <[email protected]>
Date: 2025-11-20 (Thu, 20 Nov 2025)
Changed paths:
M Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp
Log Message:
-----------
Cherry-pick 303282@main (d2ff3d1ba6f8).
https://bugs.webkit.org/show_bug.cgi?id=302488
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
Canonical link: https://commits.webkit.org/298234.298@webkitglib/2.50
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications