@@ -2321,8 +2321,7 @@ source of security bugs. Please seek security review for features that deal with
2321
2321
<li><p> Assert: <var> response</var> 's <a for=response>URL list</a> <a for=list>is not empty</a> .
2322
2322
2323
2323
<li>
2324
- <p> Let <var> url</var> be a copy of <var> response</var> 's <a for=response>URL list</a>' s first
2325
- element.
2324
+ <p> Let <var> url</var> be a copy of <var> response</var> 's <a for=response>URL list</a> [0] .
2326
2325
2327
2326
<p class="note"> This is not <var> response</var> 's <a for=response>URL</a> in order to avoid
2328
2327
leaking information about redirect targets (see
@@ -2393,8 +2392,8 @@ end-user.
2393
2392
<dfn export for=response id=concept-response-url-list>URL list</dfn> (a <a for=/>list</a> of zero or
2394
2393
more <a for=/>URLs</a> ). Unless stated otherwise, it is « ».
2395
2394
2396
- <p class=note> Except for the last <a for=/>URL</a> , if any, a <a for=/>response</a> 's
2397
- <a for=response>URL list</a> is not exposed to script as that would violate
2395
+ <p class=note> Except for the first and last <a for=/>URL</a> , if any, a <a for=/>response</a> 's
2396
+ <a for=response>URL list</a> is not directly exposed to script as that would violate
2398
2397
<a>atomic HTTP redirect handling</a> .
2399
2398
2400
2399
<p> A <a for=/>response</a> has an associated
@@ -4634,8 +4633,8 @@ steps:
4634
4633
<p> If <var> internalResponse</var> 's <a for=response>URL list</a> <a for=list>is empty</a> , then
4635
4634
set it to a <a for=list>clone</a> of <var> request</var> 's <a for=request>URL list</a> .
4636
4635
4637
- <p class=note> A <a for=/>response</a> 's <a for=response>URL list</a> can be empty (for example,
4638
- when the response represents an <code> about</code> URL) .
4636
+ <p class=note> A <a for=/>response</a> 's <a for=response>URL list</a> can be empty, e.g., when
4637
+ fetching an <code> about: </code> URL.
4639
4638
<!-- If you are ever tempted to move this around, carefully consider responses from about URLs,
4640
4639
blob URLs, service workers, HTTP cache, HTTP network, etc. -->
4641
4640
@@ -8318,8 +8317,8 @@ otherwise <a>this</a>'s <a for=Response>response</a>'s <a for=response>URL</a>,
8318
8317
to true.
8319
8318
8320
8319
<p> The <dfn attribute for=Response><code>redirected</code></dfn> getter steps are to return true if
8321
- <a>this</a> 's <a for=Response>response</a>' s <a for=response>URL list</a> has more than one item;
8322
- otherwise false.
8320
+ <a>this</a> 's <a for=Response>response</a>' s <a for=response>URL list</a> 's <a for=list>size</a> is
8321
+ greater than 1; otherwise false.
8323
8322
8324
8323
<p class=note> To filter out <a for=/>responses</a> that are the result of a
8325
8324
redirect, do this directly through the API, e.g., <code> fetch(url, { redirect:"error" })</code> .
0 commit comments