@@ -4817,7 +4817,11 @@ steps:
4817
4817
<a for="fetch params">process response</a> given <var> response</var> , with <var> fetchParams</var> 's
4818
4818
<a for="fetch params">task destination</a> .
4819
4819
4820
- <li><p> If <var> response</var> 's <a for=response>body</a> is null, then run
4820
+ <li><p> Let <var> internalResponse</var> be <var> response</var> , if <var> response</var> is a
4821
+ <a>network error</a> ; otherwise <var> response</var> 's
4822
+ <a for="filtered response">internal response</a> .
4823
+
4824
+ <li><p> If <var> internalResponse</var> 's <a for=response>body</a> is null, then run
4821
4825
<var> processResponseEndOfBody</var> .
4822
4826
4823
4827
<li>
@@ -4835,8 +4839,8 @@ steps:
4835
4839
<a for="TransformStream/set up"><i>flushAlgorithm</i></a> set to
4836
4840
<var> processResponseEndOfBody</var> .
4837
4841
4838
- <li><p> Set <var> response </var> 's <a for=response>body</a>' s <a for=body>stream</a> to the result
4839
- of <var> response </var> 's <a for=response>body</a>' s <a for=body>stream</a>
4842
+ <li><p> Set <var> internalResponse </var> 's <a for=response>body</a>' s <a for=body>stream</a> to the
4843
+ result of <var> internalResponse </var> 's <a for=response>body</a>' s <a for=body>stream</a>
4840
4844
<a for=ReadableStream>piped through</a> <var> transformStream</var> .
4841
4845
</ol>
4842
4846
@@ -4850,18 +4854,19 @@ steps:
4850
4854
<ol>
4851
4855
<li><p> Let <var> processBody</var> given <var> nullOrBytes</var> be this step: run
4852
4856
<var> fetchParams</var> 's <a for="fetch params">process response consume body</a> given
4853
- <var> response </var> and <var> nullOrBytes</var> .
4857
+ <var> internalResponse </var> and <var> nullOrBytes</var> .
4854
4858
4855
4859
<li><p> Let <var> processBodyError</var> be this step: run <var> fetchParams</var> 's
4856
- <a for="fetch params">process response consume body</a> given <var> response</var> and failure.
4860
+ <a for="fetch params">process response consume body</a> given <var> internalResponse</var> and
4861
+ failure.
4857
4862
4858
- <li><p> If <var> response </var> 's <a for=response>body</a> is null, then <a>queue a fetch task</a>
4859
- to run <var> processBody</var> given null, with <var> fetchParams</var> 's
4863
+ <li><p> If <var> internalResponse </var> 's <a for=response>body</a> is null, then
4864
+ <a>queue a fetch task</a> to run <var> processBody</var> given null, with <var> fetchParams</var> 's
4860
4865
<a for="fetch params">task destination</a> .
4861
4866
4862
- <li><p> Otherwise, <a for=body>fully read</a> <var> response </var> 's <a for=response>body</a> given
4863
- <var> processBody </var> , <var> processBodyError </var> , and <var> fetchParams </var> 's
4864
- <a for="fetch params">task destination</a> .
4867
+ <li><p> Otherwise, <a for=body>fully read</a> <var> internalResponse </var> 's
4868
+ <a for=response>body</a> given <var> processBody </var> , <var> processBodyError </var> , and
4869
+ <var> fetchParams </var> 's < a for="fetch params">task destination</a> .
4865
4870
</ol>
4866
4871
</ol>
4867
4872
</div>
@@ -8812,8 +8817,16 @@ particular at what stage you would like to receive a callback:
8812
8817
<a for=response>body</a> failed, e.g., due to an I/O error.
8813
8818
8814
8819
<dt> a <a>byte sequence</a>
8815
- <dd> <a for=body>Fully reading</a> the contents of the <a for=/>response</a> 's
8816
- <a for=response>body</a> succeeded.
8820
+ <dd>
8821
+ <p> <a for=body>Fully reading</a> the contents of the <a for=/>response</a> 's
8822
+ <a for=response>body</a> succeeded.
8823
+
8824
+ <p class=warning> A <a>byte sequence</a> containing the full contents will be passed also for a
8825
+ <a for=/>request</a> whose <a for=request>mode</a> is "<code> no-cors</code> ". Callers have to
8826
+ be careful when handling such content, as it should not be accessible to the requesting
8827
+ <a for=/>origin</a> . For example, the caller may use contents of a "<code> no-cors</code> "
8828
+ <a for=/>response</a> to display image contents directly to the user, but those image contents
8829
+ should not be directly exposed to scripts in the embedding document.
8817
8830
</dl>
8818
8831
8819
8832
<div id=example-callback-upon-completion class=example>
0 commit comments