Skip to content

Commit 1d683bb

Browse files
committed
MIX: Clarify blocking algorithm for passthrough requests.
1 parent bed7ad2 commit 1d683bb

File tree

2 files changed

+12
-30
lines changed

2 files changed

+12
-30
lines changed

specs/mixedcontent/index.html

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,34 +1078,23 @@ <h3 class="heading settled" data-level="5.3" id="should-block-fetch"><span class
10781078
<code>CORS-with-forced-preflight</code>.
10791079

10801080

1081-
1082-
<li>
1083-
<var>request</var>’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-initiator">initiator</a> is "<code>fetch</code>", and
1084-
<a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-destination">destination</a> is "<code>subresource</code>", and
1085-
<var>request</var> is <em>not</em> a <a data-link-type="dfn" href="#passthrough-request">passthrough request</a>.
1086-
1087-
10881081

10891082
</ol>
10901083

10911084

10921085

10931086

10941087
<li>
1095-
Return <strong>blocked</strong> <em>unless</em> one or more of the
1096-
following conditions are met:
1088+
Return <strong>allowed</strong> if one or more of the following
1089+
conditions are met:
10971090

10981091

10991092
<ol>
11001093

11011094
<li>
1102-
<var>request</var>’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-initiator">initiator</a> is "<code>fetch</code>".
1103-
1104-
1105-
<p class="note" role="note">Note: We deal with the rejection case for <code>fetch</code> in the
1106-
previous step. See the bottom of this algorithm for a more detailed
1107-
explanation of why we need this special casing.</p>
1108-
1095+
<var>request</var>’s <a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-initiator">initiator</a> is "<code>fetch</code>" and
1096+
<a data-link-type="dfn" href="https://fetch.spec.whatwg.org/#concept-request-destination">destination</a> is "<code>subresource</code>", and
1097+
<var>request</var> is a <a data-link-type="dfn" href="#passthrough-request">passthrough request</a>.
11091098

11101099

11111100

@@ -1131,7 +1120,7 @@ <h3 class="heading settled" data-level="5.3" id="should-block-fetch"><span class
11311120

11321121

11331122
<li>
1134-
Return <strong>allowed</strong>.
1123+
Return <strong>blocked</strong>.
11351124

11361125

11371126

specs/mixedcontent/index.src.html

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -739,24 +739,17 @@ <h3 id="should-block-fetch">
739739
<var>request</var>'s <code>mode</code> is <code>CORS</code> or
740740
<code>CORS-with-forced-preflight</code>.
741741
</li>
742-
<li>
743-
<var>request</var>'s <a>initiator</a> is "<code>fetch</code>", and
744-
<a>destination</a> is "<code>subresource</code>", and
745-
<var>request</var> is <em>not</em> a <a>passthrough request</a>.
746-
</li>
747742
</ol>
748743
</li>
749744
<li>
750-
Return <strong>blocked</strong> <em>unless</em> one or more of the
751-
following conditions are met:
745+
Return <strong>allowed</strong> if one or more of the following
746+
conditions are met:
752747

753748
<ol>
754749
<li>
755-
<var>request</var>'s <a>initiator</a> is "<code>fetch</code>".
756-
757-
Note: We deal with the rejection case for <code>fetch</code> in the
758-
previous step. See the bottom of this algorithm for a more detailed
759-
explanation of why we need this special casing.
750+
<var>request</var>'s <a>initiator</a> is "<code>fetch</code>" and
751+
<a>destination</a> is "<code>subresource</code>", and
752+
<var>request</var> is a <a>passthrough request</a>.
760753
</li>
761754
<li>
762755
<var>request</var>'s <a>type</a> is "<code>image</code>", and
@@ -771,7 +764,7 @@ <h3 id="should-block-fetch">
771764
</ol>
772765
</li>
773766
<li>
774-
Return <strong>allowed</strong>.
767+
Return <strong>blocked</strong>.
775768
</li>
776769
</ol>
777770

0 commit comments

Comments
 (0)