Re: File API: auto-revoking blob URLs

On Mon, Apr 15, 2013 at 7:49 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> So blob URLs are auto-revoked by default after the current script
> stops running. However, every fetch operation in existence (apart from
> synchronous XMLHttpRequest) does so asynchronous.
>
> So
>
> <img>.src = blobURL
>
> might very well start fetching at the point blobURL is already cleaned up.
>
> We need a different solution here. I'm not really sure what the
> solution is, but autoRevoke as-is does not work.

What could maybe work is having all specifications invoke
http://fetch.spec.whatwg.org/#concept-fetch synchronously which will
then do the right thing for blob URLs (take a reference to the
underlying object, etc). That seems like a better solution than
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17765 as having all
APIs special case blob is just asking for trouble.


--
http://annevankesteren.nl/

Received on Monday, 15 April 2013 19:04:40 UTC