w3c / w3c/webdriver

Make it explicite that "Get All Cookies" and "Get Named Cookie" should not return an expiry key for session cookies

Open
#1,128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

clarification
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

Serializing a cookie for both the "Get All Cookies" and "Get Named Cookie" commands doesn't explicitly mention that the expiry key should not be present for session cookies:
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-serialized-cookie

Only "Add Cookie" makes it clear under step 7 that for session cookies no expiry key has to be set:
https://w3c.github.io/webdriver/webdriver-spec.html#add-cookie
https://w3c.github.io/webdriver/webdriver-spec.html#dfn-cookie-expiry-time

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WebDriver specification's serialized-cookie definition and compare the Get All Cookies and Get Named Cookie sections with the linked Add Cookie and cookie-expiry-time sections. Done means the serialization rules explicitly state how the expiry key is handled for session cookies in both commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.