|
1 | 1 | { |
2 | 2 | "spec": { |
3 | 3 | "title": "Cookies Having Independent Partitioned State specification", |
4 | | - "url": "https://explainers-by-googlers.github.io/CHIPS-spec/draft-cutler-httpbis-partitioned-cookies.html" |
| 4 | + "url": "https://www.ietf.org/archive/id/draft-cutler-httpbis-partitioned-cookies-01.html" |
5 | 5 | }, |
6 | 6 | "algorithms": [ |
7 | 7 | { |
8 | 8 | "rationale": "let", |
9 | 9 | "steps": [ |
10 | 10 | { |
11 | | - "html": "Let top-document be the active document in document's browsing context's top-level browsing context.<a href=\"https://explainers-by-googlers.github.io/CHIPS-spec/draft-cutler-httpbis-partitioned-cookies.html#section-2.2-2.1.1\" class=\"pilcrow\">¶</a>" |
| 11 | + "html": "Let top-document be the active document in document's browsing context's top-level browsing context.<a href=\"https://www.ietf.org/archive/id/draft-cutler-httpbis-partitioned-cookies-01.html#section-2.2-2.1.1\" class=\"pilcrow\">¶</a>" |
12 | 12 | }, |
13 | 13 | { |
14 | | - "html": "Let \"cookie-partition-key\" be the site of the top-document when the user agent made the request.<a href=\"https://explainers-by-googlers.github.io/CHIPS-spec/draft-cutler-httpbis-partitioned-cookies.html#section-2.2-2.1.2\" class=\"pilcrow\">¶</a>" |
| 14 | + "html": "Let \"cookie-partition-key\" be the site of the top-document when the user agent made the request.<a href=\"https://www.ietf.org/archive/id/draft-cutler-httpbis-partitioned-cookies-01.html#section-2.2-2.1.2\" class=\"pilcrow\">¶</a>" |
15 | 15 | }, |
16 | 16 | { |
17 | | - "html": "If the cookie is being read or written via a \"non-HTTP\" API, then cookie-partition-key is the site (as defined in <span>[<a href=\"https://explainers-by-googlers.github.io/CHIPS-spec/draft-cutler-httpbis-partitioned-cookies.html#HTML\" class=\"cite xref\">HTML</a>]</span>) of the top-document of the document associated with the non-HTTP API.<a href=\"https://explainers-by-googlers.github.io/CHIPS-spec/draft-cutler-httpbis-partitioned-cookies.html#section-2.2-2.1.3\" class=\"pilcrow\">¶</a>" |
| 17 | + "html": "If the cookie is being read or written via a \"non-HTTP\" API, then cookie-partition-key is the site (as defined in <span>[<a href=\"https://www.ietf.org/archive/id/draft-cutler-httpbis-partitioned-cookies-01.html#HTML\" class=\"cite xref\">HTML</a>]</span>) of the top-document of the document associated with the non-HTTP API.<a href=\"https://www.ietf.org/archive/id/draft-cutler-httpbis-partitioned-cookies-01.html#section-2.2-2.1.3\" class=\"pilcrow\">¶</a>" |
18 | 18 | } |
19 | 19 | ] |
20 | 20 | }, |
21 | 21 | { |
22 | 22 | "rationale": "if", |
23 | 23 | "steps": [ |
24 | 24 | { |
25 | | - "html": "If the cookie-attribute-list does not contain an attribute with an attribute-name of \"Partitioned\", set partition-key to null.<br><br>\n If the cookie-attribute-list does contain an attribute with an attribute-name of \"Partitioned\" and the secure-only-flag is false, abort these steps and ignore the cookie entirely.<br><br>\n Otherwise, set partition-key to cookie-partition-key defined in section 5.X.X.<a href=\"https://explainers-by-googlers.github.io/CHIPS-spec/draft-cutler-httpbis-partitioned-cookies.html#section-2.3-4.1.1\" class=\"pilcrow\">¶</a>" |
| 25 | + "html": "If the cookie-attribute-list does not contain an attribute with an attribute-name of \"Partitioned\", set partition-key to null.<br><br>\n If the cookie-attribute-list does contain an attribute with an attribute-name of \"Partitioned\" and the secure-only-flag is false, abort these steps and ignore the cookie entirely.<br><br>\n Otherwise, set partition-key to cookie-partition-key defined in section 5.X.X.<a href=\"https://www.ietf.org/archive/id/draft-cutler-httpbis-partitioned-cookies-01.html#section-2.3-4.1.1\" class=\"pilcrow\">¶</a>" |
26 | 26 | } |
27 | 27 | ] |
28 | 28 | }, |
29 | 29 | { |
30 | 30 | "rationale": "if", |
31 | 31 | "steps": [ |
32 | 32 | { |
33 | | - "html": "If the cookie store contains a cookie with the same name, domain, host-only-flag, path, and partition-key as the newly-created cookie:<br><br>\n a. Let old-cookie be the existing cookie with the same name, domain, host-only-flag, path, and partition-key as the newly-created cookie. (Notice that this algorithm maintains the invariant that there is at most one such cookie.)<br><br>\n b. If the newly-created cookie was received from a \"non-HTTP\" API and the old-cookie's http-only-flag is true, abort these steps and ignore the newly created cookie entirely.<br><br>\n c. Update the creation-time of the newly-created cookie to match the creation-time of the old-cookie.<br><br>\n d. Remove the old-cookie from the cookie store.<a href=\"https://explainers-by-googlers.github.io/CHIPS-spec/draft-cutler-httpbis-partitioned-cookies.html#section-2.4-2.1.1\" class=\"pilcrow\">¶</a>" |
| 33 | + "html": "If the cookie store contains a cookie with the same name, domain, host-only-flag, path, and partition-key as the newly-created cookie:<br><br>\n a. Let old-cookie be the existing cookie with the same name, domain, host-only-flag, path, and partition-key as the newly-created cookie. (Notice that this algorithm maintains the invariant that there is at most one such cookie.)<br><br>\n b. If the newly-created cookie was received from a \"non-HTTP\" API and the old-cookie's http-only-flag is true, abort these steps and ignore the newly created cookie entirely.<br><br>\n c. Update the creation-time of the newly-created cookie to match the creation-time of the old-cookie.<br><br>\n d. Remove the old-cookie from the cookie store.<a href=\"https://www.ietf.org/archive/id/draft-cutler-httpbis-partitioned-cookies-01.html#section-2.4-2.1.1\" class=\"pilcrow\">¶</a>" |
34 | 34 | } |
35 | 35 | ] |
36 | 36 | }, |
37 | 37 | { |
38 | 38 | "rationale": "for", |
39 | 39 | "steps": [ |
40 | 40 | { |
41 | | - "html": "For each cookie in cookie-list, do the following:<br><br>\n a. If the cookie's cookie-partition-key attribute is null, skip this step.<br><br>\n b. Otherwise, if the top-document is not same-site with the cookie's partition-key then remove the cookie from cookie-list.<a href=\"https://explainers-by-googlers.github.io/CHIPS-spec/draft-cutler-httpbis-partitioned-cookies.html#section-4.3-2.1.1\" class=\"pilcrow\">¶</a>" |
| 41 | + "html": "For each cookie in cookie-list, do the following:<br><br>\n a. If the cookie's cookie-partition-key attribute is null, skip this step.<br><br>\n b. Otherwise, if the top-document is not same-site with the cookie's partition-key then remove the cookie from cookie-list.<a href=\"https://www.ietf.org/archive/id/draft-cutler-httpbis-partitioned-cookies-01.html#section-4.3-2.1.1\" class=\"pilcrow\">¶</a>" |
42 | 42 | } |
43 | 43 | ] |
44 | 44 | } |
|
0 commit comments