Skip to content

Commit

Permalink
Simplify redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Mar 24, 2021
1 parent 8fddbb6 commit b37ef51
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ lt="authentication entry">authentication entries</a> (for HTTP authentication).

<dt><dfn for="fetch params">timing info</dfn>
<dd>A <a for=/>fetch timing info</a>.

<dt><dfn for="fetch params">redirect timing info list</dfn> (default « »)
<dd>A <a for=/>list</a> of 0 or more <a for=/>fetch timing info</a>.
</dl>

<p>A <dfn export>fetch timing info</dfn> is a <a for=/>struct</a> used to maintain timing
Expand Down Expand Up @@ -4317,15 +4314,6 @@ these steps:
<!-- not resetting actualResponse since it's no longer used anyway -->
</ol>

<li><p>Let <var>redirectTimingList</var> be <var>fetchParams</var>'s
<a for="fetch params">redirect timing info list</a>.

<li><p>If <var>redirectTimingList</var> <a for=list>is not empty</a>, then set
<var>timingInfo</var>'s <a for="fetch timing info">redirect start time</a> to
<var>redirectTimingList</var>[0]'s <a for="fetch timing info">fetch start time</a> and
<a for="fetch timing info">redirect end time</a> to <var>redirectTimingList</var>'s last item's
<a for="fetch timing info">fetch start time</a>.

<li>
<p>Set <var>response</var>'s <a for=response>timing info</a> to <var>timingInfo</var>.

Expand Down Expand Up @@ -4420,8 +4408,15 @@ run these steps:
<p class="note no-backref"><var>request</var>'s <a for=request>body</a>'s <a for=body>source</a>'s
nullity has already been checked.

<li><p>Append <var>fetchParams</var>'s <a for="fetch params">timing info</a> to
<var>fetchParams</var>'s <a for="fetch params">redirect timing info list</a>.
<li><p>Let <var>timingInfo</var> be <var>fetchParams</var>'s <a for="fetch params">timing info</a>.

<li><p>Set <var>timingInfo</var>'s <a for="fetch timing info">redirect end time</a> to the
<a for=/>coarsened shared current time</a> given <var>fetchParams</var>'s
<a for="fetch params">cross-origin isolated capability</a>.

<li><p>If <var>timingInfo</var>'s <a for="fetch timing info">redirect start time</a> is 0, then set
<var>timingInfo</var>'s <a for="fetch timing info">redirect start time</a> to
<var>timingInfo</var>'s <a for="fetch timing info">fetch start time</a>.

<li><p><a for=list>Append</a> <var>locationURL</var> to <var>request</var>'s
<a for=request>URL list</a>.
Expand Down

0 comments on commit b37ef51

Please sign in to comment.