[Bug 24998] What is the origin of a blob: URL?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24998

--- Comment #10 from Arun <arun@mozilla.com> ---
(In reply to Anne from comment #9)
> It seems annoying that if you have an API that takes a URL you need to ask
> the person providing that API to also support Blob objects...


Well, it's true that they are currently coupled; that is, the API that minted
the Blob URL has to know about the Blob, and that's the origin of the Blob URL
also, since the incumbent settings object provides the global out of which the
create* is called. This seems safe and conservative for file resources.


> 
> I don't see how that makes it clear. You have a blob URL, which is a string,
> how do you get the origin out of it?


You cannot. As specified, the scheme data is only a resource identifier, not an
origin identifier, and you can't look at the string that is the Blob URL and
conclude anything about origin. I don't imagine anyone is really going to be
looking at the string that is the Blob URL.

Your proposal is to simply do exactly what we do for data URLs, right?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 19 March 2014 20:08:48 UTC