@@ -2492,6 +2492,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
2492
2492
<li><dfn data-x="serialize-a-response-url-for-reporting" data-x-href="https://fetch.spec.whatwg.org/#serialize-a-response-url-for-reporting">serialize a response URL for reporting</dfn></li>
2493
2493
<li><dfn data-x="body safely extract" data-x-href="https://fetch.spec.whatwg.org/#bodyinit-safely-extract">safely extracting a body</dfn></li>
2494
2494
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#process-response-end-of-body">processResponseConsumeBody</dfn></li>
2495
+ <li><dfn data-x-href="https://fetch.spec.whatwg.org/#fetch-processresponseendofbody">processResponseEndOfBody</dfn></li>
2495
2496
<li>
2496
2497
<dfn data-x="concept-response"
2497
2498
data-x-href="https://fetch.spec.whatwg.org/#concept-response">response</dfn> and its
@@ -24202,12 +24203,14 @@ document.body.appendChild(wbr);</code></pre>
24202
24203
<li><p>Optionally, return. (For example, the user agent might wish to ignore any or
24203
24204
all ping URLs in accordance with the user's expressed preferences.)</p></li>
24204
24205
24206
+ <li><p>Let <var>settingsObject</var> be the element's <span>node document</span>'s
24207
+ <span>relevant settings object</span>.</p></li>
24208
+
24205
24209
<li><p>Let <var>request</var> be a new <span data-x="concept-request">request</span> whose
24206
24210
<span data-x="concept-request-url">URL</span> is <var>ping URL</var>, <span
24207
24211
data-x="concept-request-method">method</span> is `<code data-x="">POST</code>`, <span
24208
24212
data-x="concept-request-body">body</span> is `<code data-x="">PING</code>`, <span
24209
- data-x="concept-request-client">client</span> is the <span>environment settings object</span> of
24210
- the <code>Document</code> containing the <span>hyperlink</span>, <span
24213
+ data-x="concept-request-client">client</span> is <var>settingsObject</var>, <span
24211
24214
data-x="concept-request-destination">destination</span> is the empty string,
24212
24215
<span data-x="concept-request-credentials-mode">credentials mode</span> is "<code
24213
24216
data-x="">include</code>", <span data-x="concept-request-referrer">referrer</span> is "<code
@@ -24239,7 +24242,12 @@ document.body.appendChild(wbr);</code></pre>
24239
24242
</dl>
24240
24243
</li>
24241
24244
24242
- <!--FETCH--><li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>.</p></li>
24245
+ <li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>, with <i
24246
+ data-x="processResponseEndOfBody">processResponseEndOfBody</i> given <span
24247
+ data-x="concept-response">response</span> <var>res</var> set to <span>finalize and report
24248
+ timing</span> with <var>res</var>, <var>settingsObject</var>'s <span
24249
+ data-x="concept-settings-object-global">global object</span>, and "<code
24250
+ data-x="">ping</code>".</p></li>
24243
24251
</ol>
24244
24252
24245
24253
<p>This may be done <span>in parallel</span> with the primary fetch, and is independent of the
@@ -91856,13 +91864,18 @@ document.querySelector("button").addEventListener("click", bound);
91856
91864
remaining steps.</p>
91857
91865
91858
91866
<p>Otherwise, <span data-x="concept-fetch">fetch</span> <var>request</var>. Return from this
91859
- algorithm, and run the remaining steps as part of the fetch's <span>process response</span> for
91860
- the <span data-x="concept-response">response</span> <var>response</var>.</p>
91867
+ algorithm, and run the remaining steps as part of the fetch's <i
91868
+ data-x="processResponseConsumeBody">processResponseConsumeBody</i> given <span
91869
+ data-x="concept-response">response</span> <var>response</var>.</p>
91861
91870
91862
91871
<p class="note"><var>response</var> can be either <span>CORS-same-origin</span> or
91863
91872
<span>CORS-cross-origin</span>. This only affects how error reporting happens.</p>
91864
91873
</li>
91865
91874
91875
+ <li><p><span>Finalize and report timing</span> with <var>response</var>, <var>settings
91876
+ object</var>'s <span data-x="concept-settings-object-global">global object</span>, and "<code
91877
+ data-x="">script</code>".</p></li>
91878
+
91866
91879
<li><p>Set <var>response</var> to <var>response</var>'s <span>unsafe response</span>.</p></li>
91867
91880
91868
91881
<li>
@@ -91925,10 +91938,15 @@ document.querySelector("button").addEventListener("click", bound);
91925
91938
remaining steps.</p>
91926
91939
91927
91940
<p>Otherwise, <span data-x="concept-fetch">fetch</span> <var>request</var>. Return from this
91928
- algorithm, and run the remaining steps as part of the fetch's <span>process response</span> for
91929
- the <span data-x="concept-response">response</span> <var>response</var>.</p>
91941
+ algorithm, and run the remaining steps as part of the fetch's <i
91942
+ data-x="processResponseConsumeBody">processResponseConsumeBody</i> given <span
91943
+ data-x="concept-response">response</span> <var>response</var>.<p>
91930
91944
</li>
91931
91945
91946
+ <li><p><span>Finalize and report timing</span> with <var>response</var>, <var>fetch client
91947
+ settings object</var>'s <span data-x="concept-settings-object-global">global object</span>, and
91948
+ "<code data-x="">other</code>".</p></li>
91949
+
91932
91950
<li><p>Set <var>response</var> to <var>response</var>'s <span>unsafe response</span>.</p></li>
91933
91951
91934
91952
<li>
@@ -91944,7 +91962,6 @@ document.querySelector("button").addEventListener("click", bound);
91944
91962
91945
91963
<p>then asynchronously complete this algorithm with null, and return.</p>
91946
91964
</li>
91947
-
91948
91965
<li>
91949
91966
<p>If both of the following conditions are met:</p>
91950
91967
@@ -92002,6 +92019,10 @@ document.querySelector("button").addEventListener("click", bound);
92002
92019
also finish their work synchronously.</p>
92003
92020
</li>
92004
92021
92022
+ <li><p><span>Finalize and report timing</span> with <var>response</var>, <var>settings
92023
+ object</var>'s <span data-x="concept-settings-object-global">global object</span>, and "<code
92024
+ data-x="">other</code>".</p></li>
92025
+
92005
92026
<li><p>Set <var>response</var> to <var>response</var>'s <span>unsafe response</span>.</p></li>
92006
92027
92007
92028
<li>
@@ -92196,8 +92217,9 @@ document.querySelector("button").addEventListener("click", bound);
92196
92217
"<code data-x="">fetching</code>".</p></li>
92197
92218
92198
92219
<li>
92199
- <p><span data-x="concept-fetch">Fetch</span> <var>request</var>. To <span>process
92200
- response</span> for the <span data-x="concept-response">response</span> <var>response</var>:</p>
92220
+ <p><span data-x="concept-fetch">Fetch</span> <var>request</var>, with <i
92221
+ data-x="processResponseConsumeBody">processResponseConsumeBody</i> set to the following steps
92222
+ given <span data-x="concept-response">response</span> <var>response</var>:</p>
92201
92223
92202
92224
<ol>
92203
92225
<li><p>Set <var>moduleResponsesMap</var>[<var>requestURL</var>] to
@@ -92602,12 +92624,17 @@ document.querySelector("button").addEventListener("click", bound);
92602
92624
data-x="concept-response">response</span> <var>response</var>, run the remaining steps.</p>
92603
92625
92604
92626
<p>Otherwise, <span data-x="concept-fetch">fetch</span> <var>request</var>. Return from this
92605
- algorithm, and run the remaining steps as part of the fetch's <span>process response</span> for
92606
- the <span data-x="concept-response">response</span> <var>response</var>.</p>
92627
+ algorithm, and run the remaining steps as part of the fetch's <i
92628
+ data-x="processResponseConsumeBody">processResponseConsumeBody</i> given <span
92629
+ data-x="concept-response">response</span> <var>response</var>.</p>
92607
92630
92608
92631
<p class="note"><var>response</var> is always <span>CORS-same-origin</span>.</p>
92609
92632
</li>
92610
92633
92634
+ <li><p><span>Finalize and report timing</span> with <var>response</var>, <var>fetch client
92635
+ settings object</var>'s <span data-x="concept-settings-object-global">global object</span>, and
92636
+ "<code data-x="">other</code>".</p></li>
92637
+
92611
92638
<li>
92612
92639
<p>If either of the following conditions are met:</p>
92613
92640
0 commit comments