W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [FileAPI] Deterministic release of Blob proposal

From: Charles Pritchard <chuck@jumis.com>
Date: Tue, 06 Mar 2012 17:32:04 -0800
Message-ID: <4F56BA94.10205@jumis.com>
To: Feras Moussa <ferasm@microsoft.com>
CC: Arun Ranganathan <aranganathan@mozilla.com>, Adrian Bateman <adrianba@microsoft.com>, "public-webapps@w3.org" <public-webapps@w3.org>, Ian Hickson <ian@hixie.ch>, Anne van Kesteren <annevk@opera.com>
On 3/6/12 5:12 PM, Feras Moussa wrote:
>> >
>> >  frameRef.src = URL.createObjectURL(blob);
>> >  blob.close() // method name TBD
>> >
>> >  In my opinion, the first (using xhr) should succeed.  In the second, frameRef.src works,
>> >  but subsequent attempts to mint a Blob URI for the same 'blob' resource fail.  Does this
>> >  hold true for you?
> We agree that subsequent attempts to mint a blob URI for a blob that has been closed
> should fail, and is what I tried to clarify in my comments in 'section 6'.
> As an aside, the above example shows navigation to a Blob URI - this is not something we
> Currently support or intend to support.

Then let's try this again.

var a = new Image();
a.onerror = function() { console.log("Oh no, my parent was neutered!"); };
a.src = URL.createObjectURL(blob);

Is that error going to hit?

var a = new Worker('#');

Is that blob going to make it to the worker?

Received on Wednesday, 7 March 2012 01:32:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:31 UTC