-
Notifications
You must be signed in to change notification settings - Fork 40
Allow setting a maxAge #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
annevk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For other fields we have some validation. Do we want to throw if both expires and maxAge are passed?
|
hmm i was planning to let that decision fall to the rfc and just prefer the |
|
Once we start targeting the layered-cookies I-D instead of the current RFC, I'm pretty sure we'll need to resolve the duplication locally anyway as we're not going to serialize what we have and feed it into the parser, but instead we'll create a cookie instance here and use that. |
|
Oh I didnt realize that, happy to check which is specified and throw an error in that case. Would you rather we construct a unified expiry time (between |
|
I think we should leave that until we update this specification to target the layered-cookies I-D. @bakulf thoughts on all this? |
DCtheTall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one suggestion
|
fyi, updated the initial PR description now the wpts merged web-platform-tests/wpt@0f2fc46. also @annevk mind if I list WebKit as an interested implementer, or would you rather I follow up on the original Cookie Store API stds position request? |
annevk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can list WebKit as interested. We also need a WPT PR to rename the tests away from tentative.
whatwg/cookiestore#292 (review) Bug: 430926231 Change-Id: I1a25d37d7b150fd08d304f1c3734b2fd842d49cf
whatwg/cookiestore#292 (review) Bug: 430926231 Change-Id: I1a25d37d7b150fd08d304f1c3734b2fd842d49cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7227980 Reviewed-by: Aaron Selya <[email protected]> Commit-Queue: Anusha Muley <[email protected]> Reviewed-by: Dylan Cutler <[email protected]> Cr-Commit-Position: refs/heads/main@{#1554072}
whatwg/cookiestore#292 (review) Bug: 430926231 Change-Id: I1a25d37d7b150fd08d304f1c3734b2fd842d49cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7227980 Reviewed-by: Aaron Selya <[email protected]> Commit-Queue: Anusha Muley <[email protected]> Reviewed-by: Dylan Cutler <[email protected]> Cr-Commit-Position: refs/heads/main@{#1554072}
whatwg/cookiestore#292 (review) Bug: 430926231 Change-Id: I1a25d37d7b150fd08d304f1c3734b2fd842d49cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7227980 Reviewed-by: Aaron Selya <[email protected]> Commit-Queue: Anusha Muley <[email protected]> Reviewed-by: Dylan Cutler <[email protected]> Cr-Commit-Position: refs/heads/main@{#1554072}
…n-tentative, a=testonly Automatic update from web-platform-tests Mark Cookie Store API `max-age` tests non-tentative whatwg/cookiestore#292 (review) Bug: 430926231 Change-Id: I1a25d37d7b150fd08d304f1c3734b2fd842d49cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7227980 Reviewed-by: Aaron Selya <[email protected]> Commit-Queue: Anusha Muley <[email protected]> Reviewed-by: Dylan Cutler <[email protected]> Cr-Commit-Position: refs/heads/main@{#1554072} -- wpt-commits: 10c64cd2ef2b28c5637cc6dd3d24f11b6969c883 wpt-pr: 56489
…n-tentative, a=testonly Automatic update from web-platform-tests Mark Cookie Store API `max-age` tests non-tentative whatwg/cookiestore#292 (review) Bug: 430926231 Change-Id: I1a25d37d7b150fd08d304f1c3734b2fd842d49cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7227980 Reviewed-by: Aaron Selya <[email protected]> Commit-Queue: Anusha Muley <[email protected]> Reviewed-by: Dylan Cutler <[email protected]> Cr-Commit-Position: refs/heads/main@{#1554072} -- wpt-commits: 10c64cd2ef2b28c5637cc6dd3d24f11b6969c883 wpt-pr: 56489
Add
maxAgeas a CookieInitOption used in cookieStore.set(options).Related to #57 #162
max-agefeature details to Cookie Store API MDN page mdn/mdn#775(See WHATWG Working Mode: Changes for more details.)
Preview | Diff