Skip to content

webdriver: Improve error reporting for Cookie Addition#58773

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_43690
Mar 26, 2026
Merged

webdriver: Improve error reporting for Cookie Addition#58773
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo:servo_export_43690

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

@servo-wpt-sync servo-wpt-sync commented Mar 26, 2026

Improve the error reporting for cookie addition.
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: servo/servo#43690 (comment).
We fix spec in w3c/webdriver#1955 and
make sure Servo behaves consistently with other browsers.

Testing: Added one test for invalid expiry time. New passing with existing.
Reviewed in servo/servo#43690

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
@servo-wpt-sync servo-wpt-sync merged commit 2aa0e3e into web-platform-tests:master Mar 26, 2026
25 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_43690 branch March 26, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants