mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb+LibWebView: Add an internal API to expire cookies with an offset
Cookies have a minimum expiry resolution of 1 second. So to test cookie expiration, the test had to idle for at least a second, which is quite a noticeable delay now that LibWeb tests are parallelized. Instead, we can add an internal API to expire cookies with a time offset to avoid this idle delay.
This commit is contained in:
parent
6ce473af72
commit
e070ed5658
Notes:
github-actions[bot]
2024-10-14 06:54:34 +00:00
Author: https://github.com/trflynn89
Commit: e070ed5658
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1771
Reviewed-by: https://github.com/shannonbooth
13 changed files with 51 additions and 24 deletions
|
@ -502,6 +502,11 @@ void PageClient::page_did_update_cookie(Web::Cookie::Cookie cookie)
|
|||
client().async_did_update_cookie(move(cookie));
|
||||
}
|
||||
|
||||
void PageClient::page_did_expire_cookies_with_time_offset(AK::Duration offset)
|
||||
{
|
||||
client().async_did_expire_cookies_with_time_offset(offset);
|
||||
}
|
||||
|
||||
void PageClient::page_did_update_resource_count(i32 count_waiting)
|
||||
{
|
||||
client().async_did_update_resource_count(m_id, count_waiting);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue