diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-04-12 23:16:27 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-13 15:52:50 +0200 |
commit | 86bdfa1edf21293e2c0f3ca8b31808a21882cb99 (patch) | |
tree | ffe8f76844ef1443da3ff8397854e3fa0ce32122 /Userland/Libraries/LibGUI/ScrollBar.cpp | |
parent | a0111f6a3e3a410647c70c884ef6d9666454d048 (diff) | |
download | serenity-86bdfa1edf21293e2c0f3ca8b31808a21882cb99.zip |
Browser: Implement spec-compliant cookie storage
https://tools.ietf.org/html/rfc6265#section-5.3
This includes a bit of an update to how cookies are first parsed. The
storage spec requires some extra information from the parsing steps than
just the actual values that were parsed. For example, it needs to know
whether Max-Age or Expires (or both) were specified to give precedence
to Max-Age. To accommodate this, the parser now uses an intermediate
struct for storing this information. The final Cookie struct is not
created until the storage steps.
The storage itself is also updated to be keyed by a combo of the cookie
name, domain, and path.
Retrieving cookies was updated to use the spec's domain-matching
algorithm, but otherwise is not written to the spec yet. This also does
not handle evicting expired cookies yet.
Diffstat (limited to 'Userland/Libraries/LibGUI/ScrollBar.cpp')
0 files changed, 0 insertions, 0 deletions