Skip to content

Commit

Permalink
Editorial: use response's has-cross-origin-redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
abinpaul1 authored Oct 22, 2022
1 parent 4d6609f commit 478e131
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2584,6 +2584,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<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-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="concept-response-has-cross-origin-redirects" data-x-href="https://fetch.spec.whatwg.org/#response-has-cross-origin-redirects">has-cross-origin-redirects</dfn></li>
<li>
<dfn data-x-href="https://wicg.github.io/background-fetch/#extract-content-range-values">extract content-range values</dfn>
<!-- TODO: move this to FETCH -->
Expand Down Expand Up @@ -88464,10 +88465,6 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<dt><dfn data-x="navigation-params-hh">history handling</dfn></dt>
<dd>a <span>history handling behavior</span></dd>

<dt><dfn data-x="navigation-params-has-cross-origin-redirects">has cross-origin
redirects</dfn></dt>
<dd>a boolean</dd>

<dt><dfn data-x="navigation-params-process-response-end-of-body">process response end of
body</dfn></dt>
<dd>an algorithm expecting a <span data-x="concept-response">response</span></dd>
Expand Down Expand Up @@ -88765,9 +88762,7 @@ 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-has-cross-origin-redirects">has cross-origin redirects</span> is
false, and <span
is <var>processResponseEndOfBody</var>, and <span
data-x="navigation-params-commit-early-hints">commit early hints</span> is null.</p></li>

<li><p>Run <span>process a navigate response</span> with <var>navigationType</var>,
Expand Down Expand Up @@ -88826,9 +88821,7 @@ 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-has-cross-origin-redirects">has cross-origin redirects</span> is
false, and <span
is <var>processResponseEndOfBody</var>, and <span
data-x="navigation-params-commit-early-hints">commit early hints</span> is null.</p></li>

<li><p>Run <span>process a navigate response</span> with <var>navigationType</var>,
Expand Down Expand Up @@ -89185,9 +89178,7 @@ 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-has-cross-origin-redirects">has cross-origin redirects</span> is
<var>hasCrossOriginRedirects</var>, and
<var>processResponseEndOfBody</var>, and
<span data-x="navigation-params-commit-early-hints">commit early hints</span> is
<var>commitEarlyHints</var>.</p></li>

Expand Down Expand Up @@ -89756,7 +89747,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
</li>

<li><p>Let <var>redirectCount</var> be 0 if <var>navigationParams</var>'s <span
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is true;
data-x="navigation-params-response">response</span>'s <span
data-x="concept-response-has-cross-origin-redirects">has-cross-origin-redirects</span> is true;
otherwise <var>navigationParams</var>'s <span data-x="navigation-params-request">request</span>'s
<span data-x="concept-request-redirect-count">redirect count</span>.

Expand Down Expand Up @@ -89878,7 +89870,8 @@ new PaymentRequest(&hellip;); // Allowed to use
<var>unloadTimingInfo</var> to null.</p></li>

<li><p>If <var>navigationParams</var>'s <span
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is false,
data-x="navigation-params-response">response</span>'s <span
data-x="concept-response-has-cross-origin-redirects">has-cross-origin-redirects</span> is false,
and <var>newDocument</var>'s <span data-x="concept-document-origin">origin</span> is the <span
data-x="same origin">same</span> as <var>previousDocument</var>'s <span
data-x="concept-document-origin">origin</span>, then set <var>newDocument</var>'s <span>previous
Expand Down

0 comments on commit 478e131

Please sign in to comment.