Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 205ddc426aa9415813bde2740d059d7574048238
      
https://github.com/WebKit/WebKit/commit/205ddc426aa9415813bde2740d059d7574048238
  Author: Matthew Finkel <[email protected]>
  Date:   2026-04-29 (Wed, 29 Apr 2026)

  Changed paths:
    M Source/WebCore/platform/network/cocoa/CookieCocoa.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKHTTPCookieStore.mm

  Log Message:
  -----------
  [cocoa] Explicitly handle cookies with NSHTTPCookieSameSiteNone
https://bugs.webkit.org/show_bug.cgi?id=313010
rdar://175354204

Reviewed by Charlie Wolfe.

A recent change in CFNetwork results in WebKit potentially receiving a @"none"
value for the cookie's SameSite property. This wasn't previously possible
because unspecified and None were handled identically. Since the CFNetwork
change, a debug assertion within WebKit is now being triggered on some sites.
This change adds explicit support for the @"none" SameSite value.

* Source/WebCore/platform/network/cocoa/CookieCocoa.mm:
(WebCore::coreSameSitePolicy):
(WebCore::nsSameSitePolicy):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKHTTPCookieStore.mm:
(TEST(WKHTTPCookieStore, SetCookies)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to