mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb+LibWebView: Set the default path for invalid cookie Path values
We were missing this spec step when parsing the Path attribute.
This commit is contained in:
parent
ba1189cd1c
commit
e74d2b1762
Notes:
github-actions[bot]
2024-09-18 23:02:58 +00:00
Author: https://github.com/trflynn89
Commit: e74d2b1762
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1434
Reviewed-by: https://github.com/tcl3 ✅
8 changed files with 64 additions and 47 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/Time.h>
|
||||
#include <LibIPC/Forward.h>
|
||||
#include <LibURL/Forward.h>
|
||||
#include <LibWeb/Cookie/Cookie.h>
|
||||
|
||||
namespace Web::Cookie {
|
||||
|
@ -26,8 +27,9 @@ struct ParsedCookie {
|
|||
bool http_only_attribute_present { false };
|
||||
};
|
||||
|
||||
Optional<ParsedCookie> parse_cookie(StringView cookie_string);
|
||||
Optional<ParsedCookie> parse_cookie(URL::URL const&, StringView cookie_string);
|
||||
bool cookie_contains_invalid_control_character(StringView);
|
||||
String default_path(URL::URL const&);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue