Skip to content

Commit 4ab8432

Browse files
committed
Throw a few more errors
1 parent 152d725 commit 4ab8432

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

fetch.bs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8646,6 +8646,14 @@ partial interface mixin WindowOrWorkerGlobalScope {
86468646
method steps are:
86478647

86488648
<ol>
8649+
<li>
8650+
<p>If the user-agent has determined that deferred fetching is not allowed in this context, then
8651+
throw a {{NotAllowedError}}.
8652+
8653+
<p class=note>User-agents can, for example, decide that deferred fetching is not allowed for
8654+
subframes or gated behind some permission.
8655+
</li>
8656+
86498657
<li><p>Let <var>requestObject</var> be the result of invoking the initial value of {{Request}} as
86508658
constructor with <var>input</var> and <var>init</var> as arguments. This may throw an exception.
86518659

@@ -8654,6 +8662,12 @@ method steps are:
86548662

86558663
<li><p>Let <var>request</var> be <var>requestObject</var>'s <a for=Request>request</a>.
86568664

8665+
<li><p>If <var>request</var>'s <a for=request>URL</a>'s <a for=url>scheme</a> is not an
8666+
<a>HTTP(S) scheme</a> then throw a {{TypeError}}.
8667+
8668+
<li><p>If <var>request</var>'s <a for=request>URL</a> is not a
8669+
[=potentially trustworthy url=], then throw a {{SecurityError}}.
8670+
86578671
<li><p>Let <var>backgroundTimeout</var> be null.
86588672

86598673
<li><p>If <var>init</var> is given and <var>init</var>["<code>backgroundTimeout</code>"]

0 commit comments

Comments
 (0)