You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p class=note>It is expected that the cookie store returns an ordered list of cookies
3349
-
<li>If |cookies| <a for="list">is empty</a>, then return.
3350
-
<li>Let |value| be the result of <a>serializing cookies</a> given |cookies|.
3351
-
<li><a for="header list">Append</a> (`<code>Cookie</code>`, <var>value</var>) to <var>request</var>'s <a for=request>header list</a>.
3352
-
</ol>
3353
-
</div>
3354
-
3355
-
<div algorithm>
3356
-
<p>To <dfn id=parse-and-store-response-cookie-headers>parse and store response `<code>Set-Cookie</code>` headers</dfn>,
3357
-
given a <a for=/>request</a><var>request</var> and a <a for=/>response</a><var>response</var>, run these steps:
3358
-
<ol>
3359
-
<li><p>Let |allowNonHostOnlyCookieForPublicSuffix| be false.
3360
-
<li><p>Let |isSecure| be false.
3361
-
<li><p>If <var>request</var>'s <a for=request>client</a> is a <a>secure context</a>, then set |isSecure| to true.
3362
-
<li><p>Let |httpOnlyAllowed| be true.
3363
-
<p class=note>Fetch implies that the request is http-only, as opposed to document.cookie
3364
-
<li><p>Let |sameSiteStrictOrLaxAllowed| be true if the result of [=determine the same-site mode=] for |request| is "<code>StrictOrLess</code>", and false otherwise.
3365
-
<li><p><a for=list>For each</a><var>header</var> of <var>response</var>'s <a for=response>header list</a>:
3366
-
<ol>
3367
-
<li><p>If <var>header</var>'s <a for=header>name</a> is not a <a>byte-case-insensitive</a> match for `<code>Set-Cookie</code>`, then <a for=iteration>continue</a>.
<p>To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a><var>request</var>, run these steps:
3382
-
<ol>
3383
-
<li><p><a for=/>Assert</a>: <var>request</var>'s <a for=request>method</a> is "GET" or "POST".
3384
-
<li><p>If <var>request</var>'s <a for=request>top-level navigation initiator origin</a> is not null and is not <a for=/>same site</a> to <var>request</var>'s <a for=request>URL</a>'s <a for=url>origin</a>, return "<code>UnsetOrLess</code>".
3385
-
<li><p>If <var>request</var>'s <a for=request>method</a> is "GET" and
3386
-
<var>request</var>'s <a for=request>destination</a> is "document", return "<code>LaxOrLess</code>".
3387
-
<li><p>If <var>request</var>'s <a for=request>client</a>'s <a for=environment>ancestry</a> is "<code>cross-site</code>", return "<code>UnsetOrLess</code>".
3388
-
<li><p>If <var>request</var>'s <a for=request>redirect-taint</a> is "<code>Cross-Site</code>", return "<code>UnsetOrLess</code>".
<p class=note>It is expected that the cookie store returns an ordered list of cookies
4282
+
<li>If |cookies| <a for="list">is empty</a>, then return.
4283
+
<li>Let |value| be the result of running <a>serialize cookies</a> given |cookies|.
4284
+
<li><a for="header list">Append</a> (`<code>Cookie</code>`, <var>value</var>) to <var>request</var>'s <a for=request>header list</a>.
4285
+
</ol>
4286
+
</div>
4287
+
4288
+
<div algorithm>
4289
+
<p>To <dfn id=parse-and-store-response-cookie-headers>parse and store response `<code>Set-Cookie</code>` headers</dfn>,
4290
+
given a <a for=/>request</a><var>request</var> and a <a for=/>response</a><var>response</var>, run these steps:
4291
+
<ol>
4292
+
<li><p>If the user-agent is configured to disable cookies for <var>request</var>, it should return.
4293
+
<li><p>Let |allowNonHostOnlyCookieForPublicSuffix| be false.
4294
+
<li><p>Let |isSecure| be false.
4295
+
<li><p>If <var>request</var>'s <a for=request>client</a> is a <a>secure context</a>, then set |isSecure| to true.
4296
+
<li><p>Let |httpOnlyAllowed| be true.
4297
+
<p class=note>Fetch implies that the request is http-only, as opposed to document.cookie
4298
+
<li><p>Let |sameSiteStrictOrLaxAllowed| be true if the result of [=determine the same-site mode=] for |request| is "<code>StrictOrLess</code>", and false otherwise.
4299
+
<li><p><a for=list>For each</a><var>header</var> of <var>response</var>'s <a for=response>header list</a>:
4300
+
<ol>
4301
+
<li><p>If <var>header</var>'s <a for=header>name</a> is not a <a>byte-case-insensitive</a> match for `<code>Set-Cookie</code>`, then <a for=iteration>continue</a>.
<p>To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a><var>request</var>, run these steps:
4316
+
<ol>
4317
+
<li><p><a for=/>Assert</a>: <var>request</var>'s <a for=request>method</a> is "GET" or "POST".
4318
+
<li><p>If <var>request</var>'s <a for=request>top-level navigation initiator origin</a> is not null and is not <a for=/>same site</a> to <var>request</var>'s <a for=request>URL</a>'s <a for=url>origin</a>, return "<code>UnsetOrLess</code>".
4319
+
<li><p>If <var>request</var>'s <a for=request>method</a> is "GET" and
4320
+
<var>request</var>'s <a for=request>destination</a> is "document", return "<code>LaxOrLess</code>".
4321
+
<li><p>If <var>request</var>'s <a for=request>client</a>'s <a for=environment>ancestry</a> is "<code>cross-site</code>", return "<code>UnsetOrLess</code>".
4322
+
<li><p>If <var>request</var>'s <a for=request>redirect-taint</a> is "<code>cross-site</code>", return "<code>UnsetOrLess</code>".
4323
+
<li><p>Return "StrictOrLess".
4324
+
</ol>
4325
+
</div>
4327
4326
4328
4327
<h2 id=fetching>Fetching</h2>
4329
4328
@@ -4778,11 +4777,8 @@ steps:
4778
4777
<!-- If you are ever tempted to move this around, carefully consider responses from about URLs,
4779
4778
blob URLs, service workers, HTTP cache, HTTP network, etc. -->
4780
4779
4781
-
<li><p>If <var>request</var>'s <a for=request>redirect-taint</a> is not "<code>None</code>", then set
4782
-
<var>internalResponse</var>'s <a for=response>has-cross-origin-redirects</a> to true.
4783
-
4784
-
<li><p>If <var>request</var>'s <a for=request>redirect-taint</a> is "<code>Cross-Site</code>", then set
4785
-
<var>internalResponse</var>'s <a for=response>has-cross-site-redirects</a> to true.
4780
+
<li><p>Set <var>internalResponse</var>'s <a for=response>redirect taint</a> to <var>request</var>'s
4781
+
<a for=request>redirect-taint</a>.
4786
4782
4787
4783
<li><p>If <var>request</var>'s <a for=request>timing allow failed flag</a> is unset, then set
0 commit comments