mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +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:
committed by
Tim Ledbetter
parent
ba1189cd1c
commit
e74d2b1762
@@ -137,7 +137,7 @@ static ByteString sanitized_url_for_logging(URL::URL const& url)
|
||||
|
||||
static void store_response_cookies(Page& page, URL::URL const& url, ByteString const& set_cookie_entry)
|
||||
{
|
||||
auto cookie = Cookie::parse_cookie(set_cookie_entry);
|
||||
auto cookie = Cookie::parse_cookie(url, set_cookie_entry);
|
||||
if (!cookie.has_value())
|
||||
return;
|
||||
page.client().page_did_set_cookie(url, cookie.value(), Cookie::Source::Http); // FIXME: Determine cookie source correctly
|
||||
|
||||
Reference in New Issue
Block a user