Re: [Bug 10430] New: [IndexedDB] We need to make it more clear IDBRequests can be reused and spec readyState's behavior

On Mon, Nov 1, 2010 at 3:17 PM, Shawn Wilsher <sdwilsh@mozilla.com> wrote:
> On 11/1/2010 5:29 AM, Jeremy Orlow wrote:
>>
>>  If not, I think we should avoid adding surface area for something we
>> don't
>> really understand very well.
>
> I agree with this.  Less is better at this point I think (when appropriate,
> of course).

Of course, the question is where it's appropriate.

The reason I prefer to keep readyState is that I've seen things move
that way elsewhere. We've recently added it to Document,
HTMLMediaElement, EventSource and WebSocket.

I do agree that as long as the result isn't on IDBRequest then it
doesn't make much sense since if you get a reference to a IDBRequest
with readyState=DONE you can't get to the result anyway.

/ Jonas

Received on Thursday, 4 November 2010 11:35:59 UTC