webdriver: configure Expires and SameSite in handle_add_cookie (#38285)

Handler::handle_add_cookie did not configure the attributes "Expires"
and "SameSite". This patch adds them.

Testing: Passing WPT tests that were expected to fail.
Fixes: https://github.com/servo/servo/pull/37715#issuecomment-3069734014

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
This commit is contained in:
Kingsley Yung 2025-07-26 20:23:24 +08:00 committed by GitHub
parent a3de3ffa75
commit 4d899ecba5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 30 additions and 30 deletions

View file

@ -25,21 +25,3 @@
[test_cookie_unsupported_scheme[secure websocket\]]
expected: FAIL
[test_add_non_session_cookie]
expected: FAIL
[test_add_cookie_with_expiry_in_the_future]
expected: FAIL
[test_add_cookie_with_valid_samesite_flag[None\]]
expected: FAIL
[test_add_cookie_with_valid_samesite_flag[Lax\]]
expected: FAIL
[test_add_cookie_with_valid_samesite_flag[Strict\]]
expected: FAIL
[test_add_cookie_with_invalid_samesite_flag]
expected: FAIL