@@ -47,10 +47,11 @@ spec: RFC6265
47
47
type: dfn
48
48
text: Cookie; url: https://httpwg.org/specs/rfc6265.html
49
49
text: Cookie store; url: https://httpwg.org/specs/rfc6265.html#storage-model
50
- spec: RFC6265bis; urlPrefix: https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-05
50
+ spec: RFC6265bis; urlPrefix: https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-20.html
51
51
type: dfn
52
52
text: Lax; url: section-4.1.2.7
53
53
text: Strict; url: section-4.1.2.7
54
+ text: Default; url: section-5.6.7.2
54
55
spec: WEBDRIVER; urlPrefix: https://w3c.github.io/webdriver/
55
56
type: dfn
56
57
text: WebDriver new session algorithm; url: dfn-webdriver-new-session-algorithms
@@ -324,17 +325,6 @@ spec: STREAMS; urlPrefix: https://streams.spec.whatwg.org/
324
325
text: ReadableStream; url: #readablestream
325
326
</pre>
326
327
327
- <pre class="biblio">
328
- {
329
- "SAME-SITE-COOKIES": {
330
- "authors": ["Mike West", "Mark Goodwin"] ,
331
- "href": "https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-same-site",
332
- "publisher": "IETF",
333
- "title": "Same-Site Cookies"
334
- }
335
- }
336
- </pre>
337
-
338
328
<style>
339
329
var {
340
330
color: #cd5c5c
@@ -6845,7 +6835,7 @@ that can be added.
6845
6835
6846
6836
<pre class="cddl" data-cddl-module="local-cddl,remote-cddl">
6847
6837
6848
- network.SameSite = "strict" / "lax" / "none"
6838
+ network.SameSite = "strict" / "lax" / "none" / "default"
6849
6839
6850
6840
<!--
6851
6841
Modifications to this definition should be reflected in
@@ -6859,8 +6849,8 @@ network.Cookie = {
6859
6849
size: js-uint,
6860
6850
httpOnly: bool,
6861
6851
secure: bool,
6862
- sameSite: network.SameSite,
6863
6852
? expiry: js-uint,
6853
+ sameSite: network.SameSite,
6864
6854
Extensible,
6865
6855
}
6866
6856
</pre>
@@ -6870,9 +6860,6 @@ The <code>network.Cookie</code> type represents a cookie.
6870
6860
<div algorithm>
6871
6861
To <dfn>serialize cookie</dfn> given |stored cookie|:
6872
6862
6873
- Note: The definitions of |stored cookie|'s fields are from [[COOKIES]] , except
6874
- samesite-flag, which is from [[SAME-SITE-COOKIES]] .
6875
-
6876
6863
1. Let |name| be the result of [=UTF-8 decode=] with |stored cookie|'s name field.
6877
6864
6878
6865
1. Let |value| be [=serialize protocol bytes=] with |stored cookie|'s value.
@@ -6893,9 +6880,10 @@ samesite-flag, which is from [[SAME-SITE-COOKIES]].
6893
6880
1. Let |secure| be true if |stored cookie|'s secure-only-flag is true, or false
6894
6881
otherwise.
6895
6882
6896
- 1. Let |same site| be "<code> none</code> " if |stored cookie|'s samesite-flag is
6897
- "<code> None</code> ", "<code> lax</code> " if it is "<code> Lax</code> ", or
6898
- "<code> strict</code> " if it is "<code> Strict</code> ".
6883
+ 1. Let |same site| be "<code> none</code> " if |stored cookie|'s same-site-flag is
6884
+ "<code> None</code> ", "<code> lax</code> " if it is "<code> Lax</code> ",
6885
+ "<code> strict</code> " if it is "<code> Strict</code> ", or
6886
+ "<code> default</code> " if it is "<code> Default</code> "
6899
6887
6900
6888
1. Return a map matching the <code> network.Cookie</code> production,
6901
6889
with the <code> name</code> field set to |name|, the <code> value</code> field
0 commit comments