@@ -2162,7 +2162,7 @@ Unless stated otherwise, it is false.
2162
2162
2163
2163
<p class=note> This flag is for exclusive use by HTTPS Upgrading algorithm.
2164
2164
2165
- <p> A <a for=/>request</a> has an associated <dfn export for=request>HTTPS upgrade fallback URL</dfn>
2165
+ <p> A <a for=/>request</a> has an associated <dfn export for=request>HTTPS upgrade fallback URL</dfn> ,
2166
2166
which is a <a for=/>URL</a> . It is a copy of the <a for=/>request</a> 's original
2167
2167
<a for=request>URL</a> before <a for=/>request</a> is <a href="#https-upgrades-upgrade">optionally
2168
2168
upgraded to HTTPS</a> . Unless stated otherwise, it is unset.
@@ -3276,20 +3276,21 @@ through TLS using ALPN. The protocol cannot be spoofed through HTTP requests in
3276
3276
</ol>
3277
3277
</div>
3278
3278
3279
+
3279
3280
<h3 id=https-upgrades>HTTPS upgrading</h3>
3280
3281
3281
- <p> User agents may optionally upgrade requests with URLs that are not <a>potentially trustworthy
3282
- URLs</a> to attempt to fetch them over <a>potentially trustworthy URLs</a> . If an upgraded request
3283
- fails with a network error, it is retried over the original URL.
3282
+ <p> User agents may optionally upgrade requests with URLs that are not
3283
+ <a>potentially trustworthy URLs</a> to attempt to fetch them over
3284
+ <a>potentially trustworthy URLs</a> . If an upgraded request fails with a network error, it is
3285
+ retried over the original URL.
3284
3286
3285
3287
<p> The HTTPS upgrading algorithm consists of <a>upgrade an HTTP request</a> and <a>HTTPS upgrade
3286
3288
fallback</a> algorithms.
3287
3289
3288
3290
<div algorithm>
3289
3291
<h4 id=https-upgrades-upgrade>HTTPS upgrade algorithm</h4>
3290
3292
3291
- <p> To <dfn>upgrade an HTTP request</dfn> given a <a for=/>request</a> <var> request</var> , run these
3292
- steps:
3293
+ <p> To <dfn>upgrade an HTTP request</dfn> given a <a for=/>request</a> <var> request</var> :
3293
3294
3294
3295
<ol>
3295
3296
<li>
@@ -3319,7 +3320,8 @@ steps:
3319
3320
3320
3321
<p class=note> This is a fallback request that shouldn't be upgraded again.
3321
3322
3322
- <li><p> Otherwise, set the following fields:
3323
+ <li>
3324
+ <p> Otherwise, set the following fields:
3323
3325
<ul>
3324
3326
<li><p> Set <a for=request>HTTPS upgrade fallback URL</a> to <var> request</var> 's
3325
3327
<a for="request">URL</a> .
@@ -3337,7 +3339,7 @@ steps:
3337
3339
<h4 id=https-upgrades-fallback>Fallback algorithm</h4>
3338
3340
3339
3341
<p> To run <dfn>HTTPS upgrade fallback</dfn> given a <a for=/>request</a> <var> request</var> and
3340
- <a for=/>response</a> <var> response</var> , run these steps :
3342
+ <a for=/>response</a> <var> response</var> :
3341
3343
3342
3344
<ol>
3343
3345
<li><p> If <var> request</var> 's <a for=request>is HTTPS upgrade</a> is not set, return
@@ -3355,13 +3357,11 @@ steps:
3355
3357
</ol>
3356
3358
3357
3359
<li>
3358
- <p> Return <var> response</var> .
3359
- <p class=note> This means the upgrade was successful.
3360
+ <p> Return <var> response</var> .
3361
+ <p class=note> This means the upgrade was successful.
3360
3362
3361
3363
</ol>
3362
-
3363
- <p class=note>
3364
- User agents can implement a fast-fallback path by canceling slow fetches on upgraded
3364
+ <p class=note> User agents can implement a fast-fallback path by canceling slow fetches on upgraded
3365
3365
requests, in order to quickly initiate a fallback http load.
3366
3366
3367
3367
</div>
@@ -4562,12 +4562,12 @@ steps:
4562
4562
<li><p> <a>Upgrade <var>request</var> to a potentially trustworthy URL, if appropriate</a> .
4563
4563
4564
4564
<li>
4565
- <p> Optionally, run <a>upgrade an HTTP request</a> algorithm on <var> request</var> , if appropriate </a> .
4565
+ <p> Optionally, run <a>upgrade an HTTP request</a> algorithm on <var> request</var> .
4566
4566
4567
4567
<p class=note> HTTPS upgrading only applies to requests with <a>HTTP(S) scheme</a> s, but it's done
4568
- in <a>main fetch</a> instead of <a>HTTP fetch</a> to ensure that <a>upgrade a mixed content
4569
- <var>request</var> to a potentially trustworthy URL, if appropriate</a> step runs next and applies
4570
- to the upgraded request.
4568
+ in <a>main fetch</a> instead of <a>HTTP fetch</a> to ensure that
4569
+ <a>upgrade a mixed content < var>request</var> to a potentially trustworthy URL, if appropriate</a>
4570
+ step runs next and applies to the upgraded request.
4571
4571
4572
4572
<li><p> <a>Upgrade a mixed content <var>request</var> to a potentially trustworthy URL, if appropriate</a> .
4573
4573
@@ -5277,7 +5277,7 @@ these steps:
5277
5277
<a>filtered response</a> ; otherwise to <var> response</var> 's
5278
5278
<a for="filtered response">internal response</a> .
5279
5279
5280
- <li><p> If <var> response</var> 's <a for=response>type</a> is "<code> error</code> " then
5280
+ <li><p> If <var> response</var> 's <a for=response>type</a> is "<code> error</code> ", then
5281
5281
return the result of running <a>HTTPS upgrade fallback</a> given <var> request</var>
5282
5282
and a <a>network error</a> .
5283
5283
@@ -5373,8 +5373,8 @@ these steps:
5373
5373
have different embedder policies.
5374
5374
5375
5375
<li> If <var> request</var> 's <a for=request>is HTTPS upgrade</a> is set, set <var> response</var> and
5376
- <var> internalResponse</var> to the result of running
5377
- <a>HTTPS upgrade fallback</a> given < var> request</var> and <var> response</var> .
5376
+ <var> internalResponse</var> to the result of running <a>HTTPS upgrade fallback</a> given
5377
+ <var> request</var> and <var> response</var> .
5378
5378
5379
5379
<li>
5380
5380
<p> If <var> internalResponse</var> 's <a for=response>status</a> is a <a>redirect status</a> :
0 commit comments