Re: Blob URL Origin

On Tue, May 13, 2014 at 6:57 PM, Jonas Sicking <jonas@sicking.cc> wrote:
> On Tue, May 13, 2014 at 6:00 AM, Anne van Kesteren <annevk@annevk.nl> wrote:
>> We don't want new URL() to take ownership of the Blob object, so
>> making new URL() reflect the origin of whoever created the uuid for
>> the Blob object seems weird.
>
> Why would it need to "take ownership of the Blob object"? First of
> all, the origin of the blob: url is determined by who called
> createObjectURL, not who owns the Blob instance. Hence you don't
> actually need to touch the Blob instance to figure out the origin, but
> rather just inspect the url itself (if we use explicit origin syntax),
> or look up the origin in the internal url->Blob table (if we use
> implicit origin syntax).

I was thinking about the latter and that would not work if the URL was
revoked. Unless we store origin at parse time.


-- 
http://annevankesteren.nl/

Received on Thursday, 15 May 2014 13:53:15 UTC