mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibWebView: Do not update cookie access time when fetched with WebDriver
When WebDriver accesses cookies, it specifically says to run: the first step of the algorithm in RFC6265 to compute cookie-string So we should skip subsequent steps. We already skip step 2, which sorts the cookies, but neglected to skip step 3 to update their last access time.
This commit is contained in:
parent
193fc7ef98
commit
306041f4ac
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/trflynn89
Commit: 306041f4ac
Pull-request: https://github.com/SerenityOS/serenity/pull/24057
1 changed files with 4 additions and 0 deletions
|
@ -447,6 +447,10 @@ Vector<Web::Cookie::Cookie> CookieJar::get_matching_cookies(const URL::URL& url,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// NOTE: The WebDriver spec expects only step 1 above to be executed to match cookies.
|
||||||
|
if (mode == MatchingCookiesSpecMode::WebDriver)
|
||||||
|
return cookie_list;
|
||||||
|
|
||||||
// 3. Update the last-access-time of each cookie in the cookie-list to the current date and time.
|
// 3. Update the last-access-time of each cookie in the cookie-list to the current date and time.
|
||||||
auto now = UnixDateTime::now();
|
auto now = UnixDateTime::now();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue