mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 08:48:57 +00:00
WebContent: Add missing step in WebDriver cookie serialization
This commit is contained in:
parent
e3a5d117a6
commit
e059c9d5a3
Notes:
github-actions[bot]
2025-08-26 10:29:41 +00:00
Author: https://github.com/IdanHo
Commit: e059c9d5a3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5946
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ static JsonValue serialize_cookie(Web::Cookie::Cookie const& cookie)
|
|||
serialized_cookie.set("domain"sv, cookie.domain);
|
||||
serialized_cookie.set("secure"sv, cookie.secure);
|
||||
serialized_cookie.set("httpOnly"sv, cookie.http_only);
|
||||
serialized_cookie.set("expiry"sv, cookie.expiry_time.seconds_since_epoch());
|
||||
if (cookie.persistent)
|
||||
serialized_cookie.set("expiry"sv, cookie.expiry_time.seconds_since_epoch()); // Must not be set if omitted when adding a cookie.
|
||||
serialized_cookie.set("sameSite"sv, Web::Cookie::same_site_to_string(cookie.same_site));
|
||||
|
||||
return serialized_cookie;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue