Skip to content

Commit 76ee5f5

Browse files
authored
Add timing information about interim responses
See w3c/resource-timing#345 for context.
1 parent 13cb7c9 commit 76ee5f5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

fetch.bs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
343343
<dt><dfn export for="fetch timing info">post-redirect start time</dfn> (default 0)
344344
<dt><dfn export for="fetch timing info">final service worker start time</dfn> (default 0)
345345
<dt><dfn export for="fetch timing info">final network-request start time</dfn> (default 0)
346+
<dt><dfn export for="fetch timing info">first interim network-response start time</dfn> (default 0)
346347
<dt><dfn export for="fetch timing info">final network-response start time</dfn> (default 0)
347348
<dt><dfn export for="fetch timing info">end time</dfn> (default 0)
348349
<dd>A {{DOMHighResTimeStamp}}.
@@ -5995,9 +5996,8 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
59955996
<p>While true:
59965997

59975998
<ol>
5998-
<li><p>If <var>timingInfo</var>'s
5999-
<a for="fetch timing info">final network-response start time</a> is 0, then set
6000-
<var>timingInfo</var>'s <a for="fetch timing info">final network-response start time</a> to
5999+
<li><p>Set <var>timingInfo</var>'s
6000+
<a for="fetch timing info">final network-response start time</a> to the
60016001
<a for=/>coarsened shared current time</a> given <var>fetchParams</var>'s
60026002
<a for="fetch params">cross-origin isolated capability</a>, immediately after the user
60036003
agent's HTTP parser receives the first byte of the response (e.g., frame header bytes for
@@ -6015,6 +6015,12 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
60156015
processing we now perform here inline. -->
60166016

60176017
<ol>
6018+
<li><p>If <var>timingInfo</var>'s
6019+
<a for="fetch timing info">first interim network-response start time</a> is 0, then set
6020+
<var>timingInfo</var>'s
6021+
<a for="fetch timing info">first interim network-response start time</a> to
6022+
<var>timingInfo</var>'s <a for="fetch timing info">final network-response start time</a>.
6023+
60186024
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>websocket</code>" and
60196025
<var>status</var> is 101, then <a for=iteration>break</a>.
60206026

0 commit comments

Comments
 (0)