[Bug 24072] Clarify handling of neutered objects

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

--- Comment #9 from Arun <arun@mozilla.com> ---
(In reply to Anne from comment #8)
> I'm not sure I care about the particulars. I just want the low-level model
> we need to operate on to be clear. Other than that I suppose we should focus
> on simplicity for developers.
> 
> So a Blob either has an association with a bag of bits or is closed.
> 
> A Blob has a size which is the length of the associated bag of bits or 0 if
> there is no association.
> 
> A Blob has a read operation. If there is an associated bag of bits this
> operation can fail for reasons listed in the specification now that would be
> better placed as part of this operation I think. If there is no associated
> bag of bits we could always return the empty byte sequence or return
> "closed" or some such and let the higher-level API deal with it. Failing
> might be okay given that the read operation can fail anyway. Some testing on
> what browsers do today might be worth doing.

Bug 24339 is for this spec fix.

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

Received on Monday, 20 January 2014 19:54:19 UTC