Skip to content

Commit 478e131

Browse files
authored
Editorial: use response's has-cross-origin-redirects
Fetch PR: whatwg/fetch#1468.
1 parent 4d6609f commit 478e131

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

source

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,6 +2584,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
25842584
<li><dfn data-x="concept-response-location-url" data-x-href="https://fetch.spec.whatwg.org/#concept-response-location-url">location URL</dfn></li>
25852585
<li><dfn data-x="concept-response-timing-info" data-x-href="https://fetch.spec.whatwg.org/#concept-response-timing-info">timing info</dfn></li>
25862586
<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>
2587+
<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>
25872588
<li>
25882589
<dfn data-x-href="https://wicg.github.io/background-fetch/#extract-content-range-values">extract content-range values</dfn>
25892590
<!-- TODO: move this to FETCH -->
@@ -88464,10 +88465,6 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8846488465
<dt><dfn data-x="navigation-params-hh">history handling</dfn></dt>
8846588466
<dd>a <span>history handling behavior</span></dd>
8846688467

88467-
<dt><dfn data-x="navigation-params-has-cross-origin-redirects">has cross-origin
88468-
redirects</dfn></dt>
88469-
<dd>a boolean</dd>
88470-
8847188468
<dt><dfn data-x="navigation-params-process-response-end-of-body">process response end of
8847288469
body</dfn></dt>
8847388470
<dd>an algorithm expecting a <span data-x="concept-response">response</span></dd>
@@ -88765,9 +88762,7 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8876588762
<var>browsingContext</var>, <span data-x="navigation-params-hh">history handling</span> is
8876688763
<var>historyHandling</var>, <span
8876788764
data-x="navigation-params-process-response-end-of-body">process response end of body</span>
88768-
is <var>processResponseEndOfBody</var>, <span
88769-
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
88770-
false, and <span
88765+
is <var>processResponseEndOfBody</var>, and <span
8877188766
data-x="navigation-params-commit-early-hints">commit early hints</span> is null.</p></li>
8877288767

8877388768
<li><p>Run <span>process a navigate response</span> with <var>navigationType</var>,
@@ -88826,9 +88821,7 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8882688821
<var>browsingContext</var>, <span data-x="navigation-params-hh">history handling</span> is
8882788822
<var>historyHandling</var>, <span
8882888823
data-x="navigation-params-process-response-end-of-body">process response end of body</span>
88829-
is <var>processResponseEndOfBody</var>, <span
88830-
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
88831-
false, and <span
88824+
is <var>processResponseEndOfBody</var>, and <span
8883288825
data-x="navigation-params-commit-early-hints">commit early hints</span> is null.</p></li>
8883388826

8883488827
<li><p>Run <span>process a navigate response</span> with <var>navigationType</var>,
@@ -89185,9 +89178,7 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8918589178
<var>browsingContext</var>, <span data-x="navigation-params-hh">history handling</span> is
8918689179
<var>historyHandling</var>, <span
8918789180
data-x="navigation-params-process-response-end-of-body">process response end of body</span> is
89188-
<var>processResponseEndOfBody</var>,
89189-
<span data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
89190-
<var>hasCrossOriginRedirects</var>, and
89181+
<var>processResponseEndOfBody</var>, and
8919189182
<span data-x="navigation-params-commit-early-hints">commit early hints</span> is
8919289183
<var>commitEarlyHints</var>.</p></li>
8919389184

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

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

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

8988089872
<li><p>If <var>navigationParams</var>'s <span
89881-
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is false,
89873+
data-x="navigation-params-response">response</span>'s <span
89874+
data-x="concept-response-has-cross-origin-redirects">has-cross-origin-redirects</span> is false,
8988289875
and <var>newDocument</var>'s <span data-x="concept-document-origin">origin</span> is the <span
8988389876
data-x="same origin">same</span> as <var>previousDocument</var>'s <span
8988489877
data-x="concept-document-origin">origin</span>, then set <var>newDocument</var>'s <span>previous

0 commit comments

Comments
 (0)