@@ -1958,8 +1958,8 @@ not always relevant and might require different behavior.
1958
1958
"<code> client</code> ".
1959
1959
1960
1960
<p> A <a for=/>request</a> has an associated
1961
- <dfn export for=request>top-level navigation initiator origin</dfn> ,
1962
- which is an <a for=/>origin</a> or null. Unless stated otherwise it is null.
1961
+ <dfn export for=request>top-level navigation initiator origin</dfn> , which is an <a for=/>origin</a>
1962
+ or null. Unless stated otherwise it is null.
1963
1963
1964
1964
<p class=note> "<code> client</code> " is changed to an <a for=/>origin</a> during
1965
1965
<a lt=fetch for=/>fetching</a> . It provides a convenient way for standards to not have to set
@@ -2278,7 +2278,7 @@ or "<code>object</code>".
2278
2278
not <a>same origin</a> with <var> lastURL</var> 's <a for=url>origin</a> , then set
2279
2279
<var> computedTaint</var> to "<code> same-site</code> ".
2280
2280
2281
- <li> Set <var> lastURL</var> to <var> url</var> .
2281
+ <li><p> Set <var> lastURL</var> to <var> url</var> .
2282
2282
</ol>
2283
2283
2284
2284
<li><p> Return <var> computedTaint</var> .
@@ -4261,25 +4261,25 @@ prefetch, or to treat it differently when counting page visits.
4261
4261
4262
4262
<h2 id=cookies>Cookies</h2>
4263
4263
4264
- <h3 id=cookie-header>`<code>Cookie</code>` header</h3>
4264
+ <p> The `<code> Cookie</code> ` request header and `<code> Set-Cookie</code> ` response headers are
4265
+ largely defined in their own specifications. We define additional infrastructure to be able to use
4266
+ them conveniently here. [[COOKIES]] .
4267
+
4265
4268
4266
- <p> The `<code> Cookie</code> ` header is largely defined in its own specification. We define
4267
- additional infrastructure to be able to use them conveniently here. [[COOKIES]] .
4269
+ <h3 id=cookie-header>`<code>Cookie</code>` header</h3>
4268
4270
4269
4271
<div algorithm>
4270
- <p> To <dfn>append a request `<code>Cookie</code>` header</dfn> ,
4271
- given a <a for=/>request</a> <var> request</var> :
4272
+ <p> To <dfn>append a request `<code>Cookie</code>` header</dfn> , given a <a for=/>request</a>
4273
+ <var> request</var> :
4272
4274
4273
4275
<ol>
4274
4276
<li><p> If the user agent is configured to disable cookies for <var> request</var> , then it should
4275
4277
return.
4276
4278
4277
4279
<li><p> Let |sameSite| be the result of [=determining the same-site mode=] for <var> request</var> .
4278
4280
4279
- <li><p> Let |isSecure| be false.
4280
-
4281
- <li><p> If <var> request</var> 's <a for=request>client</a> is a <a>secure context</a> , then set
4282
- |isSecure| to true.
4281
+ <li><p> Let |isSecure| be true if <var> request</var> 's <a for=request>current URL</a>' s
4282
+ <a for=url>scheme</a> is "<code> https</code> "; otherwise false.
4283
4283
4284
4284
<li>
4285
4285
<p> Let |httpOnlyAllowed| be true.
@@ -4303,21 +4303,21 @@ given a <a for=/>request</a> <var>request</var>:
4303
4303
</ol>
4304
4304
</div>
4305
4305
4306
+
4307
+ <h3 id=set-cookie-header>`<code>Set-Cookie</code>` header</h3>
4308
+
4306
4309
<div algorithm>
4307
- <p> To
4308
- <dfn>parse and store response `<code>Set-Cookie</code>` headers</dfn> ,
4309
- given a <a for=/>request</a> <var> request</var> and a <a for=/>response</a> <var> response</var> :
4310
+ <p> To <dfn>parse and store response `<code>Set-Cookie</code>` headers</dfn> , given a
4311
+ <a for=/>request</a> <var> request</var> and a <a for=/>response</a> <var> response</var> :
4310
4312
4311
4313
<ol>
4312
- <li><p> If the user agent is configured to disable cookies for <var> request</var> ,
4313
- then it should return.
4314
+ <li><p> If the user agent is configured to disable cookies for <var> request</var> , then it should
4315
+ return.
4314
4316
4315
4317
<li><p> Let |allowNonHostOnlyCookieForPublicSuffix| be false.
4316
4318
4317
- <li><p> Let |isSecure| be false.
4318
-
4319
- <li><p> If <var> request</var> 's <a for=request>current URL</a>' s <a for=url>scheme</a> is
4320
- "<code> https</code> ", then set |isSecure| to true.
4319
+ <li><p> Let |isSecure| be true if <var> request</var> 's <a for=request>current URL</a>' s
4320
+ <a for=url>scheme</a> is "<code> https</code> "; otherwise false.
4321
4321
4322
4322
<li>
4323
4323
<p> Let |httpOnlyAllowed| be true.
@@ -4326,30 +4326,32 @@ given a <a for=/>request</a> <var>request</var> and a <a for=/>response</a> <var
4326
4326
<code> document.cookie</code> getter steps for instance.
4327
4327
4328
4328
<li><p> Let |sameSiteStrictOrLaxAllowed| be true if the result of [=determine the same-site mode=]
4329
- for |request| is "<code> StrictOrLess </code> ", and false otherwise .
4329
+ for |request| is "<code> strict-or-less </code> "; otherwise false.
4330
4330
4331
- <li><p> <a for=list>For each</a> <var> header</var> of <var> response</var> 's
4332
- <a for=response>header list</a> :
4331
+ <li>
4332
+ <p> <a for=list>For each</a> <var> header</var> of <var> response</var> 's
4333
+ <a for=response>header list</a> :
4333
4334
4334
- <ol>
4335
- <li><p> If <var> header</var> 's <a for=header>name</a> is not a <a>byte-case-insensitive</a> match
4336
- for `<code> Set-Cookie</code> `, <a for=iteration>continue</a> .
4335
+ <ol>
4336
+ <li><p> If <var> header</var> 's <a for=header>name</a> is not a <a>byte-case-insensitive</a> match
4337
+ for `<code> Set-Cookie</code> `, then <a for=iteration>continue</a> .
4337
4338
4338
- <li><p> <a>Parse and store a cookie</a> given <var> header</var> 's <a for=header>value</a> ,
4339
- |isSecure|, <var> request</var> 's <a for=request>current URL</a>' s <a for=url>host</a> ,
4340
- <var> request</var> 's <a for=request>current URL</a>' s <a for=url>path</a> , |httpOnlyAllowed|,
4341
- |allowNonHostOnlyCookieForPublicSuffix|, and |sameSiteStrictOrLaxAllowed|.
4339
+ <li><p> <a>Parse and store a cookie</a> given <var> header</var> 's <a for=header>value</a> ,
4340
+ |isSecure|, <var> request</var> 's <a for=request>current URL</a>' s <a for=url>host</a> ,
4341
+ <var> request</var> 's <a for=request>current URL</a>' s <a for=url>path</a> , |httpOnlyAllowed|,
4342
+ |allowNonHostOnlyCookieForPublicSuffix|, and |sameSiteStrictOrLaxAllowed|.
4342
4343
4343
- <li><p> <a>Garbage collect cookies</a> given <var> request</var> 's
4344
- <a for=request>current URL</a> 's <a for=url>host</a> .
4345
- </ol>
4344
+ <li><p> <a>Garbage collect cookies</a> given <var> request</var> 's <a for=request>current URL</a>' s
4345
+ <a for=url>host</a> .
4346
+ </ol>
4347
+
4348
+ <p class=note> As noted elsewhere the `<code> Set-Cookie</code> ` header cannot be combined and
4349
+ therefore each occurrence is processed independently. This is not allowed for any other header.
4346
4350
</ol>
4347
4351
</div>
4348
4352
4349
- <h3 id=cookie-infrastructure>Cookie infrastructure</h3>
4350
4353
4351
- <p> These algorithms are not only for use with the `<code> Cookie</code> ` header, and are used in
4352
- other specifications.
4354
+ <h3 id=cookie-infrastructure>Cookie infrastructure</h3>
4353
4355
4354
4356
<div algorithm>
4355
4357
<p> To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a> <var> request</var> :
@@ -4359,20 +4361,20 @@ other specifications.
4359
4361
or "<code> POST</code> ".
4360
4362
4361
4363
<li><p> If <var> request</var> 's <a for=request>top-level navigation initiator origin</a> is not
4362
- null and is not <a for=/>same site</a> to <var> request</var> 's <a for=request>URL</a>' s
4363
- <a for=url>origin</a> , then return "<code> UnsetOrLess </code> ".
4364
+ null and is not <a for=/>same site</a> with <var> request</var> 's <a for=request>URL</a>' s
4365
+ <a for=url>origin</a> , then return "<code> unset-or-less </code> ".
4364
4366
4365
4367
<li><p> If <var> request</var> 's <a for=request>method</a> is "<code> GET</code> " and
4366
4368
<var> request</var> 's <a for=request>destination</a> is "document", then return
4367
- "<code> LaxOrLess </code> ".
4369
+ "<code> lax-or-less </code> ".
4368
4370
4369
4371
<li><p> If <var> request</var> 's <a for=request>client</a>' s
4370
- <a for=environment>has cross-site ancestor</a> is true then return "<code> UnsetOrLess </code> ".
4372
+ <a for=environment>has cross-site ancestor</a> is true, then return "<code> unset-or-less </code> ".
4371
4373
4372
- <li><p> If <var> request</var> 's <a for=request>redirect-taint</a> is "<code> cross-site</code> ",
4373
- then return "<code> UnsetOrLess </code> ".
4374
+ <li><p> If <var> request</var> 's <a for=request>redirect-taint</a> is "<code> cross-site</code> ", then
4375
+ return "<code> unset-or-less </code> ".
4374
4376
4375
- <li><p> Return "<code> StrictOrLess </code> ".
4377
+ <li><p> Return "<code> strict-or-less </code> ".
4376
4378
</ol>
4377
4379
</div>
4378
4380
0 commit comments