mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Improve the error reporting for [cookie addition](https://w3c.github.io/webdriver/#add-cookie). Most notably, when - expiry time exceeds maximum safe integer - cookie domain is not equal to session's current browsing context's active document's domain There is a bug with spec: https://github.com/servo/servo/pull/43690#discussion_r2994771111. We fix spec in https://github.com/w3c/webdriver/pull/1955 and make sure Servo behaves consistently with other browsers. Testing: Added one test for invalid expiry time. New passing with existing. --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>