webdriver
webdriver copied to clipboard
"Expires" missing from "Table for cookie conversion"
https://w3c.github.io/webdriver/#dfn-table-for-cookie-conversion is missing https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4.1 - is that intentional?
This is very likely the explanation: https://mrcoles.com/blog/cookies-max-age-vs-expires/
To add on that: the browser's Cookie Storage model will keep only the expiry-time attribute, set to the moment the cookie should expire (see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#name-storage-model).
RFC6265 defines expires as a date (seconds since epoch) and max-age as a relative delta (in seconds) leaving the actual expiry-time value to be calculated by the user agent. From a webdriver use case, though, it makes sense to set the expiry-time directly.