Skip to content

Commit 03c041e

Browse files
authored
Deal with blob: URLs that have no backing blob
Tests: web-platform-tests/wpt#33941. Fixes #1077.
1 parent 3ab5102 commit 03c041e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

fetch.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4503,12 +4503,14 @@ steps:
45034503
<a for="fetch params">canceled</a>:
45044504

45054505
<ol>
4506-
<li><p>Let <var>blob</var> be <var>request</var>'s <a for=request>current URL</a>'s
4507-
<a for=url>blob URL entry</a>'s <a for="blob URL entry">object</a>.
4506+
<li><p>Let <var>blobURLEntry</var> be <var>request</var>'s <a for=request>current URL</a>'s
4507+
<a for=url>blob URL entry</a>.
45084508

45094509
<li>
4510-
<p>If <var>request</var>'s <a for=request>method</a> is not `<code>GET</code>` or
4511-
<var>blob</var> is not a {{Blob}} object, then return a <a>network error</a>. [[!FILEAPI]]
4510+
<p>If <var>request</var>'s <a for=request>method</a> is not `<code>GET</code>`,
4511+
<var>blobURLEntry</var> is null, or <var>blobURLEntry</var>'s
4512+
<a for="blob URL entry">object</a> is not a {{Blob}} object, then return a
4513+
<a>network error</a>. [[!FILEAPI]]
45124514

45134515
<p class=note>The `<code>GET</code>` <a for=/>method</a> restriction serves no useful purpose
45144516
other than being interoperable.

0 commit comments

Comments
 (0)