Commit Graph

6 Commits

Author SHA1 Message Date
Timothy Flynn
0571e578d6 LibWeb: Reject cookies with non-ASCII domains
This is an alternate fix for the issue addressed by commit
8156531477.

Turns out we don't want to isomorphic decode the cookie header, but
decode it as UTF-8 to align with document.cookie. That will be
addressed in a subsequent commit.
2026-02-08 23:14:31 +01:00
Timothy Flynn
c6cb963a92 LibWeb+LibWebView: Update our cookie implementation to the latest RFC
These seem to largely be editorial changes. See:
https://author-tools.ietf.org/iddiff?url1=draft-ietf-httpbis-rfc6265bis-15&url2=draft-ietf-httpbis-rfc6265bis-22&difftype=--html

I've also updated the spec links to use the "datatracker.ietf.org" URL
rather than the "www.ietf.org" URL as the former has better dark-mode
support and more handy sidebar links.
2026-01-30 07:36:13 -05:00
Timothy Flynn
b69e3e2f1a LibWeb: Place all cookie-related spec AOs in a single file
Rather than splitting this between Cookie and ParsedCookie, let's just
put them all in Cookie. This just makes it more obvious where to put an
upcoming helper.
2026-01-30 07:36:13 -05:00
Idan Horowitz
73266c8498 LibWeb: Add missing cookie-age-limit steps to CookieStore::set() 2025-08-26 06:28:10 -04:00
Timothy Flynn
1c075d6039 LibWeb: Remove Web::Infra ASCII case conversion methods
We have more optimized versions of these methods in AK.
2025-05-04 15:59:17 +02:00
Timothy Flynn
93712b24bf Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00