@@ -954,6 +954,10 @@ return <a>this</a>'s <a>cross-origin credentials</a>.
954
954
</ol>
955
955
</ol>
956
956
957
+ <p> To <dfn>report timing</dfn> for an {{XMLHttpRequest}} object <var> xhr</var> ,
958
+ <a for=/>finalize and report timing</a> with <var> xhr</var> 's <a for=XMLHttpRequest>response</a> ,
959
+ <var> xhr</var> 's <a>relevant global object</a> , and "<code> xmlhttprequest</code> ".
960
+
957
961
<p id=handle-response-end-of-file> To <dfn>handle response end-of-body</dfn> for an
958
962
{{XMLHttpRequest}} object <var> xhr</var> , run these steps:
959
963
@@ -963,6 +967,8 @@ return <a>this</a>'s <a>cross-origin credentials</a>.
963
967
<li><p> If <var> xhr</var> 's <a for=XMLHttpRequest>response</a> is a <a>network error</a> , then
964
968
return.
965
969
970
+ <li><p> <a for=/>Report timing</a> for <var> xhr</var> .
971
+
966
972
<li><p> Let <var> transmitted</var> be <var> xhr</var> 's <a>received bytes</a>' s
967
973
<a for="byte sequence">length</a> .
968
974
@@ -1001,9 +1007,16 @@ return <a>this</a>'s <a>cross-origin credentials</a>.
1001
1007
<a for=response>aborted flag</a> is set, run the <a>request error steps</a> for <var> xhr</var> ,
1002
1008
<a event><code>abort</code></a> , and "{{AbortError!!exception}} " {{DOMException}} .
1003
1009
1004
- <li><p> Otherwise, if <var> xhr</var> 's <a for=XMLHttpRequest>response</a>' s is a
1005
- <a for=/>network error</a> , run the <a>request error steps</a> for <var> xhr</var> ,
1006
- <a event><code>error</code></a> , and "{{NetworkError!!exception}} " {{DOMException}} .
1010
+ <li>
1011
+ <p> Otherwise, if <var> xhr</var> 's <a for=XMLHttpRequest>response</a> is a
1012
+ <a for=/>network error</a> , then:
1013
+
1014
+ <ol>
1015
+ <li><p> <a for=/>Report timing</a> for <var> xhr</var> .
1016
+
1017
+ <li><p> Run the <a>request error steps</a> for <var> xhr</var> ,
1018
+ <a event><code>error</code></a> , and "{{NetworkError!!exception}} " {{DOMException}} .
1019
+ </ol>
1007
1020
</ol>
1008
1021
1009
1022
<p> The <dfn>request error steps</dfn> for an {{XMLHttpRequest}} object <var> xhr</var> ,
0 commit comments