Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 971435fdd3868e7fe45ec6ce8386e93766de1266
https://github.com/WebKit/WebKit/commit/971435fdd3868e7fe45ec6ce8386e93766de1266
Author: Matthew Finkel <[email protected]>
Date: 2026-07-01 (Wed, 01 Jul 2026)
Changed paths:
M Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKHTTPCookieStore.mm
Log Message:
-----------
[cocoa] _setAllowOnlyPartitionedCookies may not be set on WebSocket requests
https://bugs.webkit.org/show_bug.cgi?id=315306
rdar://176234578
Reviewed by Charlie Wolfe.
The current behavior may skip setting _setAllowOnlyPartitionedCookies because
mutableRequest may be nil in some cases. We fix this by accessing the request
with ensureMutableRequest, instead.
Covered by WKHTTPCookieStore.WebSocketCookies2 API test.
* Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(WebKit::NetworkSessionCocoa::createWebSocketTask):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:
(TEST(WKHTTPCookieStore, WebSocketCookies)):
(TEST(WKHTTPCookieStore, WebSocketCookies2)):
Originally-landed-as: 305413.953@safari-7624-branch (6faafed9cbd3).
rdar://180436267
Canonical link: https://commits.webkit.org/316273@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications