[Webkit-unassigned] [Bug 247037] Safari strips whitespace around cookies when setting with document.cookie

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 26 12:05:56 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=247037

Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |achristensen at apple.com,
                   |                            |ap at webkit.org,
                   |                            |cdumez at apple.com,
                   |                            |wilander at apple.com
            Summary|Safari seems to strip       |Safari strips whitespace
                   |whitespace from cookies in  |around cookies when setting
                   |some undetermined           |with document.cookie
                   |conditions                  |

--- Comment #1 from Alexey Proskuryakov <ap at webkit.org> ---
One theory is that the cookie value is parsed by a function that treats commas as in HTTP, separating multiple values.

In NetworkStorageSessionCocoa.mm:

    NSHTTPCookie *initialCookie = [NSHTTPCookie _cookieForSetCookieString:cookieString forURL:cookieURL partition:nil];

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221026/8953fe6d/attachment.htm>


More information about the webkit-unassigned mailing list