mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibWeb+LibWebView: Implement the latest cookie draft RFC
We currently implement the official cookie RFC, which was last updated in 2011. Unfortunately, web reality conflicts with the RFC. For example, all of the major browsers allow nameless cookies, which the RFC forbids. There has since been draft versions of the RFC published to address such issues. This patch implements the latest draft. Major differences include: * Allowing nameless or valueless (but not both) cookies * Formal cookie length limits * Formal same-site rules (not fully implemented here) * More rules around cookie domains
This commit is contained in:
parent
c7db1204ca
commit
fce003a8f5
Notes:
github-actions[bot]
2024-09-16 23:05:30 +00:00
Author: https://github.com/trflynn89
Commit: fce003a8f5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1412
Reviewed-by: https://github.com/tcl3 ✅
7 changed files with 548 additions and 176 deletions
|
@ -27,6 +27,7 @@ struct ParsedCookie {
|
|||
};
|
||||
|
||||
Optional<ParsedCookie> parse_cookie(StringView cookie_string);
|
||||
bool cookie_contains_invalid_control_character(StringView);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue