W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

Re: File API: Blob URL origin

From: Arun Ranganathan <arun@mozilla.com>
Date: Mon, 30 Jun 2014 16:48:03 -0400
Cc: Web Applications Working Group WG <public-webapps@w3.org>
Message-Id: <6416F958-7616-492C-87D4-4E231CF93483@mozilla.com>
To: Anne van Kesteren <annevk@annevk.nl>
On Jun 30, 2014, at 4:20 PM, Anne van Kesteren <annevk@annevk.nl> wrote:

> I don't really understand this. Entries should be added when a blob
> URL is created.


They are! That is, at the time the method URL.createObjectURL(blob) is called on blob, that method adds an entry to the Blob URL Store: 
http://dev.w3.org/2006/webapi/FileAPI/#add-an-entry

Iíve only defined identifier extraction for use with adding an entry. Is that wrong?


> And should be checked/removed when a blob URL is used
> (through parsing it in the URL parser, as defined by the URL parser).


Yes, this is when URL parser *checks* the Blob URL Store, *after* entries have either been added or are not present (which generates a network error).


> There should be no need for such a definition in the File API specification.


Since adding scheme data as an identifer to the Blob URL Store is the requirement, we only use the basic URL parser to get the scheme data from a generated URL to add to the Blob URL Store.

ó A*


Received on Monday, 30 June 2014 20:48:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:25 UTC