[Webkit-unassigned] [Bug 251194] [fetch] Implement `Headers.prototype.getSetCookie`

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 26 02:01:20 PST 2023


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

--- Comment #3 from Andreu Botella <abotella at igalia.com> ---
For Set-Cookie, combining multiple values with comma followed by whitespace is lossy, since you can have valid values such as "foo=bar; Expires=Thu, 01 Jan 1970 00:00:00 GMT", or even "bar=baz; Path=/test/a, b=c" (where "/test/a, b=c" is the path). Therefore, you can't accurately split a pre-combined value. And this would be observable when constructing Headers instances.

Alternatively, since Set-Cookie is both a forbidden request and response header, `FetchHeaders` could keep track of the Set-Cookie values only if the guard is `FetchHeadersGuard::None`, while maybe storing the combined value in the underlying `HTTPHeaderMap`. This would work, but it seems fragile, since the `FetchHeaders` state would not directly correspond to the `HTTPHeaderMap`'s state.

-- 
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/20230126/c16e2a66/attachment.htm>


More information about the webkit-unassigned mailing list