[Bug 25343] Expose an isClosed property on Blob Objects

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25343

--- Comment #4 from Arun <arun@mozilla.com> ---
(In reply to Arun from comment #2)
> Use Case: 
> 
> If a Blob is closed, a read will fail, and affiliated operations (such as
> generating Blob URLs) will fail within their prescribed error functionality
> (e.g. with a network error). This property will give an indication to the
> caller of a read operation or a URL generation operation whether or not the
> Blob has been closed by other script blocks.

A specific example might be a WebGL program such as a game using Blobs for
textures. During game play, one of the textures is invalidated (by user action;
e.g. as in http://learningthreejs.com/data/live-video-in-webgl/ one of the
videos would change as a result of a game play action) and the Blob is closed,
to make way for new Blobs. The Blob closing (which also revokes URLs) should be
tested for, so that the data isn't read again.

But I think all use cases would fall into the above category: that is, to
determine whether or not to perform a Blob operation, or another culling
operation.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 24 April 2014 20:26:59 UTC