Skip to content

Commit 9e6959a

Browse files
committed
Throw a few more errors
1 parent 5373d29 commit 9e6959a

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
@@ -8650,6 +8650,14 @@ partial interface mixin WindowOrWorkerGlobalScope {
86508650
method steps are:
86518651

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

@@ -8658,6 +8666,12 @@ method steps are:
86588666

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

8669+
<li><p>If <var>request</var>'s <a for=request>URL</a>'s <a for=url>scheme</a> is not an
8670+
<a>HTTP(S) scheme</a> then throw a {{TypeError}}.
8671+
8672+
<li><p>If <var>request</var>'s <a for=request>URL</a> is not a
8673+
[=potentially trustworthy url=], then throw a {{SecurityError}}.
8674+
86618675
<li><p>Let <var>backgroundTimeout</var> be null.
86628676

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

0 commit comments

Comments
 (0)