Skip to content

Commit

Permalink
Expose a mechanism for hiding internal timing info
Browse files Browse the repository at this point in the history
This is needed for whatwg/html#7104 and #1215.
  • Loading branch information
noamr authored Sep 30, 2021
1 parent b2f04e2 commit 8659a25
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
<dd>Null or a <a for=/>connection timing info</a>.
</dl>

<p>To
<dfn export lt="create an opaque timing info|creating an opaque timing info">create an opaque timing info</dfn>,
given a <a for=/>fetch timing info</a> <var>timingInfo</var>, return a new
<a for=/>fetch timing info</a> whose <a for="fetch timing info">start time</a> and
<a for="fetch timing info">post-redirect start time</a> are <var>timingInfo</var>'s
<a for="fetch timing info">start time</a>.

<p>To <dfn>update timing info from stored response</dfn>, given a
<a for=/>connection timing info</a> <var>timingInfo</var> and a <a for=/>response</a>
<var>response</var>, perform the following steps:
Expand Down Expand Up @@ -4131,10 +4138,8 @@ steps:
<p>If <var>response</var>'s <a for=response>timing allow passed flag</a> is not set, then:

<ol>
<li><p>Set <var>timingInfo</var> to a new <a for=/>fetch timing info</a> whose
<a for="fetch timing info">start time</a> and
<a for="fetch timing info">post-redirect start time</a> are <var>timingInfo</var>'s
<a for="fetch timing info">start time</a>.
<li><p>Set <var>timingInfo</var> to a the result of <a>creating an opaque timing info</a> for
<var>timingInfo</var>.

<li><p>Set <var>cacheState</var> to the empty string.
</ol>
Expand Down

0 comments on commit 8659a25

Please sign in to comment.