<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Fetching blob URLs with query parameters results in 404"
href="https://bugs.webkit.org/show_bug.cgi?id=156125#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Fetching blob URLs with query parameters results in 404"
href="https://bugs.webkit.org/show_bug.cgi?id=156125">bug 156125</a>
from <span class="vcard"><a class="email" href="mailto:beidson@apple.com" title="Brady Eidson <beidson@apple.com>"> <span class="fn">Brady Eidson</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=156125#c0">comment #0</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=275457" name="attach_275457" title="Reproducible test case">attachment 275457</a> <a href="attachment.cgi?id=275457&action=edit" title="Reproducible test case">[details]</a></span>
> Reproducible test case
>
> Steps to repro:
>
> 1. Create a Blob
> 2. Create an object URL
> 3. Append a query param
> 4. Fetch it
>
> Expected:
>
> The Blob should be fetched normally, regardless of whether or not there are
> query params.</span >
This is not actually a forgone conclusion.
There's a relevant spec here - <a href="https://www.w3.org/TR/FileAPI/#DefinitionOfScheme">https://www.w3.org/TR/FileAPI/#DefinitionOfScheme</a> - that defines what a valid blob url is.
A blob URL *MUST* consist of:
- The blob: scheme
- String representing the origin of the blob
- The character "/"
- String that is a UUID.
A blob URL *MAY* consist of:
- An optional fragment identifier
The language here is very short. If it's not in a "must" or a "may" section, one can extrapolate that it's a "must not".
<span class="quote">> There's no 404 in Firefox, but there is in Chrome.</span >
It seems like Firefox might get this wrong.
<span class="quote">> FWIW Edge throws an "Invalid argument" exception if you append a query string to a blob URL.</span >
It seems like Edge gets this "the most right"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>