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

Re: [FileAPI] createObjectURL isReusable proposal

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 30 Jan 2012 10:56:06 -0500
Message-ID: <4F26BD96.6060700@mit.edu>
To: public-webapps@w3.org
On 1/30/12 10:40 AM, Bronislav Klučka wrote:
> img1 = document.getElementById("my-image");
> img1.src = URL.createObjectUrl(myBlob);
> img2.src = img1.src;
> should work like a charm and the URL and blob will be released as soon
> as all references will be 0 (destroying the image)

No, it won't.  As currently specced it will be released when the 
document goes away or when the url created via createObjectURL is 
manually revoked.  That's precisely the problem.

-Boris
Received on Monday, 30 January 2012 15:56:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT