Skip to content

Commit

Permalink
Use controller in navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Apr 5, 2022
1 parent 56eac0b commit 788e13a
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2555,6 +2555,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x="concept-internal-response" data-x-href="https://fetch.spec.whatwg.org/#concept-internal-response">internal response</dfn></li>
<li><dfn data-x="concept-response-location-url" data-x-href="https://fetch.spec.whatwg.org/#concept-response-location-url">location URL</dfn></li>
<li><dfn data-x="concept-response-timing-info" data-x-href="https://fetch.spec.whatwg.org/#concept-response-timing-info">timing info</dfn></li>
<li><dfn data-x="concept-response-resource-info" data-x-href="https://fetch.spec.whatwg.org/#concept-response-resource-info">resource info</dfn></li>
<li><dfn data-x="concept-response-cache-state" data-x-href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</dfn></li>
<li><dfn data-x="concept-response-service-worker-timing-info" data-x-href="https://fetch.spec.whatwg.org/#response-service-worker-timing-info">service worker timing info</dfn></li>
<li>
<dfn data-x-href="https://wicg.github.io/background-fetch/#extract-content-range-values">extract content-range values</dfn>
Expand Down Expand Up @@ -2603,13 +2605,14 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
</ul>
</li>
<li>
<dfn data-x="fetch-controller"
<dfn data-x="fetch controller"
data-x-href="https://fetch.spec.whatwg.org/#fetch-controller">fetch controller</dfn> and its
associated:
<ul class="brief">
<li><dfn data-x="fetch-controller-conclude" data-x-href="https://fetch.spec.whatwg.org/#finalize-and-report-timing">conclude</dfn></li>
<li><dfn data-x="fetch-controller-abort" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-abort">abort</dfn></li>
<li><dfn data-x="fetch-controller-terminate" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-terminate">terminate</dfn></li>
<li><dfn data-x="fetch-controller-timing-info" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-timing-info">timing info</dfn></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -88056,6 +88059,9 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
body</dfn></dt>
<dd>an algorithm expecting a <span data-x="concept-response">response</span></dd>

<dt><dfn data-x="navigation-params-fetch-controller">fetch controller</dfn></dt>
<dd>null or a <span>fetch controller</span></dd>

<dt><dfn data-x="navigation-params-unsafe-start-time">unsafe start time</dfn></dt>
<dd>a number, representing a value of the <span>unsafe shared current time</span> when the
navigation has started</dd>
Expand Down Expand Up @@ -88365,7 +88371,9 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<var>browsingContext</var>, <span data-x="navigation-params-hh">history handling</span> is
<var>historyHandling</var>, <span
data-x="navigation-params-process-response-end-of-body">process response end of body</span>
is <var>processResponseEndOfBody</var>, <span
is <var>processResponseEndOfBody</var>,
<span data-x="navigation-params-fetch-controller">fetch controller</span> is
null, <span
data-x="navigation-params-unsafe-start-time">unsafe start time</span> is
<var>unsafeNavigationStartTime</var>, and <span
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
Expand Down Expand Up @@ -88428,6 +88436,7 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<var>historyHandling</var>, <span
data-x="navigation-params-process-response-end-of-body">process response end of body</span>
is <var>processResponseEndOfBody</var>, <span
data-x="navigation-params-fetch-controller">fetch controller</span> is null,<span
data-x="navigation-params-unsafe-start-time">unsafe start time</span> is
<var>unsafeNavigationStartTime</var>, and <span
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
Expand Down Expand Up @@ -88547,6 +88556,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location

<li><p>Let <var>hasCrossOriginRedirects</var> be false.</p></li>

<li><p>Let <var>fetchController</var> be null.</p></li>

<li>
<p>While true:</p>

Expand Down Expand Up @@ -88631,8 +88642,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<p>Otherwise:</p>

<ol>
<li><p>If <var>response</var> is null, <!--FETCH--><span
data-x="concept-fetch">fetch</span> <var>request</var>.</p></li>
<li><p>If <var>response</var> is null, set <var>fetchController</var> to the result of
<!--FETCH--><span data-x="concept-fetch">fetching</span> <var>request</var>.</p></li>

<li><p>Otherwise, perform <span>HTTP-redirect fetch</span> using
<var>request</var> and <var>response</var>.</p></li>
Expand Down Expand Up @@ -88770,7 +88781,9 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<var>browsingContext</var>, <span data-x="navigation-params-hh">history handling</span> is
<var>historyHandling</var>, <span
data-x="navigation-params-process-response-end-of-body">process response end of body</span> is
<var>processResponseEndOfBody</var>, <span data-x="navigation-params-unsafe-start-time">unsafe
<var>processResponseEndOfBody</var>, <span
data-x="navigation-params-fetch-controller">fetch controller</span> is
<var>fetchController</var>, <span data-x="navigation-params-unsafe-start-time">unsafe
start time</span> is <var>unsafeNavigationStartTime</var>, and <span
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
<var>hasCrossOriginRedirects</var>.</p></li>
Expand Down Expand Up @@ -89346,12 +89359,20 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
otherwise <var>navigationParams</var>'s <span data-x="navigation-params-request">request</span>'s
<span data-x="concept-request-redirect-count">redirect count</span>.

<li><p><span>Create the navigation timing entry</span> for <var>document</var>, with
<var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>'s <span
data-x="concept-response-timing-info">timing info</span>, <var>redirectCount</var>,
<var>navigationTimingType</var>, and <var>navigationParams</var>'s <span
<li><p>If <var>navigationParams</var>'s
<span data-x="navigation-params-fetch-controller">fetch controller</span> is not null, then
<span>create the navigation timing entry</span> for <var>document</var>, with
<var>navigationParams</var>'s
<span data-x="navigation-params-fetch-controller">fetch controller</span>'s <span
data-x="fetch-controller-timing-info">timing info</span>, <var>redirectCount</var>,
<var>navigationTimingType</var>, <var>navigationParams</var>'s <span
data-x="navigation-params-response">response</span>'s <span
data-x="concept-response-service-worker-timing-info">service worker timing info</span>,
<var>navigationParams</var>'s <span
data-x="navigation-params-response">response</span>'s <span
data-x="concept-response-service-worker-timing-info">service worker timing info</span>.</p></li>
data-x="concept-response-cache-state">cache state</span>,
and <var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>'s
<span data-x="concept-response-resource-info">resource info</span>.</p></li>

<li>
<p>If <var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>
Expand Down Expand Up @@ -89917,6 +89938,7 @@ new PaymentRequest(&hellip;); // Allowed to use
result</span> is a new <span data-x="coop-enforcement-result">cross-origin opener policy
enforcement result</span>, <span data-x="navigation-params-reserved-environment">reserved
environment</span> is null, <span
data-x="navigation-params-fetch-controller">fetch controller</span> is null, <span
data-x="navigation-params-process-response-end-of-body">process response end of body</span> is
an algorithm that does nothing, <span data-x="navigation-params-unsafe-start-time">unsafe start
time</span> is the <span>unsafe shared current time</span>, and <span
Expand Down

0 comments on commit 788e13a

Please sign in to comment.