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

2010-08-25 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10430 Summary: [IndexedDB] We need to make it more clear IDBRequests can be reused and spec readyState's behavior Product: WebAppsWG Version: unspecified Platform: PC OS/Version: Al

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

2010-08-25 Thread Jeremy Orlow
Also, the constants for the ready state should start with 0, not 1. Also, what happens if someone does the following: request = objectStore.openCursor(); request.onsuccess(function() { event.result.continue(); request.abort(); event.result.continue(); } Also, is it possible to get the

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

2010-08-25 Thread Jeremy Orlow
On Wed, Aug 25, 2010 at 4:12 PM, Jeremy Orlow wrote: > Also, the constants for the ready state should start with 0, not 1. > > Also, what happens if someone does the following: > request = objectStore.openCursor(); > request.onsuccess(function() { > event.result.continue(); > request.abor

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

2010-08-25 Thread Jeremy Orlow
On Wed, Aug 25, 2010 at 4:41 PM, Jeremy Orlow wrote: > On Wed, Aug 25, 2010 at 4:12 PM, Jeremy Orlow wrote: > >> Also, the constants for the ready state should start with 0, not 1. >> >> Also, what happens if someone does the following: >> request = objectStore.openCursor(); >> request.onsuccess

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

2010-08-25 Thread Jonas Sicking
On Wed, Aug 25, 2010 at 8:12 AM, Jeremy Orlow wrote: > Also, the constants for the ready state should start with 0, not 1. > Also, what happens if someone does the following: > request = objectStore.openCursor(); > request.onsuccess(function() { >     event.result.continue(); >     request.abort()

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

2010-08-25 Thread Jeremy Orlow
On Wed, Aug 25, 2010 at 9:29 PM, Jonas Sicking wrote: > On Wed, Aug 25, 2010 at 8:12 AM, Jeremy Orlow wrote: > > Also, the constants for the ready state should start with 0, not 1. > > Also, what happens if someone does the following: > > request = objectStore.openCursor(); > > request.onsuccess

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

2010-08-25 Thread Jonas Sicking
On Wed, Aug 25, 2010 at 3:42 PM, Jeremy Orlow wrote: > On Wed, Aug 25, 2010 at 9:29 PM, Jonas Sicking wrote: >> >> On Wed, Aug 25, 2010 at 8:12 AM, Jeremy Orlow wrote: >> > Also, the constants for the ready state should start with 0, not 1. >> > Also, what happens if someone does the following:

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

2010-08-26 Thread Jeremy Orlow
I asked whether LOADING should be 0 rather than 1. (There is no 0 constant since we removed INITIAL.) I also asked " is it possible to get the IDBRequest object from within the openCursor/continue events without saving it off somewhere? If not, it probably should be." On Thu, Aug 26, 2010 at 2:

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

2010-08-26 Thread Jonas Sicking
On Thu, Aug 26, 2010 at 2:15 AM, Jeremy Orlow wrote: > I asked whether LOADING should be 0 rather than 1.  (There is no 0 constant > since we removed INITIAL.) I agree with this. > I also asked " is it possible to get the IDBRequest object from within the > openCursor/continue events without sav

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

2010-11-01 Thread Jeremy Orlow
Actually, what's the use case for readyState? I can't think of any uses that we'd want to encourage. Maybe we should just remove it. J On Wed, Aug 25, 2010 at 3:50 PM, wrote: > http://www.w3.org/Bugs/Public/show_bug.cgi?id=10430 > > Summary: [IndexedDB] We need to make it more clear

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

2010-11-01 Thread Jonas Sicking
On Mon, Nov 1, 2010 at 1:46 AM, Jeremy Orlow wrote: > Actually, what's the use case for readyState?  I can't think of any uses > that we'd want to encourage.  Maybe we should just remove it. The use-case that I've heard in similar situations goes something like this: Code makes a request and at

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

2010-11-01 Thread Jeremy Orlow
On Mon, Nov 1, 2010 at 9:42 AM, Jonas Sicking wrote: > On Mon, Nov 1, 2010 at 1:46 AM, Jeremy Orlow wrote: > > Actually, what's the use case for readyState? I can't think of any uses > > that we'd want to encourage. Maybe we should just remove it. > > The use-case that I've heard in similar si

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

2010-11-01 Thread Jonas Sicking
On Mon, Nov 1, 2010 at 2:49 AM, Jeremy Orlow wrote: > On Mon, Nov 1, 2010 at 9:42 AM, Jonas Sicking wrote: >> >> On Mon, Nov 1, 2010 at 1:46 AM, Jeremy Orlow wrote: >> > Actually, what's the use case for readyState?  I can't think of any uses >> > that we'd want to encourage.  Maybe we should ju

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

2010-11-01 Thread Jeremy Orlow
On Mon, Nov 1, 2010 at 9:57 AM, Jonas Sicking wrote: > On Mon, Nov 1, 2010 at 2:49 AM, Jeremy Orlow wrote: > > On Mon, Nov 1, 2010 at 9:42 AM, Jonas Sicking wrote: > >> > >> On Mon, Nov 1, 2010 at 1:46 AM, Jeremy Orlow > wrote: > >> > Actually, what's the use case for readyState? I can't thin

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

2010-11-01 Thread Jonas Sicking
On Mon, Nov 1, 2010 at 3:18 AM, Jeremy Orlow wrote: > On Mon, Nov 1, 2010 at 9:57 AM, Jonas Sicking wrote: >> >> On Mon, Nov 1, 2010 at 2:49 AM, Jeremy Orlow wrote: >> > On Mon, Nov 1, 2010 at 9:42 AM, Jonas Sicking wrote: >> >> >> >> On Mon, Nov 1, 2010 at 1:46 AM, Jeremy Orlow >> >> wrote: >

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

2010-11-01 Thread Jeremy Orlow
On Mon, Nov 1, 2010 at 11:08 AM, Jonas Sicking wrote: > On Mon, Nov 1, 2010 at 3:18 AM, Jeremy Orlow wrote: > > On Mon, Nov 1, 2010 at 9:57 AM, Jonas Sicking wrote: > >> > >> On Mon, Nov 1, 2010 at 2:49 AM, Jeremy Orlow > wrote: > >> > On Mon, Nov 1, 2010 at 9:42 AM, Jonas Sicking > wrote: >

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

2010-11-01 Thread Jonas Sicking
On Mon, Nov 1, 2010 at 4:49 AM, Jeremy Orlow wrote: > > > On Mon, Nov 1, 2010 at 11:08 AM, Jonas Sicking wrote: >> >> On Mon, Nov 1, 2010 at 3:18 AM, Jeremy Orlow wrote: >> > On Mon, Nov 1, 2010 at 9:57 AM, Jonas Sicking wrote: >> >> >> >> On Mon, Nov 1, 2010 at 2:49 AM, Jeremy Orlow >> >> wro

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

2010-11-01 Thread Jeremy Orlow
On Mon, Nov 1, 2010 at 12:00 PM, Jonas Sicking wrote: > On Mon, Nov 1, 2010 at 4:49 AM, Jeremy Orlow wrote: > > > > > > On Mon, Nov 1, 2010 at 11:08 AM, Jonas Sicking wrote: > >> > >> On Mon, Nov 1, 2010 at 3:18 AM, Jeremy Orlow > wrote: > >> > On Mon, Nov 1, 2010 at 9:57 AM, Jonas Sicking >

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

2010-11-01 Thread Shawn Wilsher
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). Cheers, Shawn smime.p7s Description: S/MIME Cryptograp

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

2010-11-04 Thread Jonas Sicking
On Mon, Nov 1, 2010 at 3:17 PM, Shawn Wilsher 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

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

2010-11-04 Thread Jeremy Orlow
On Thu, Nov 4, 2010 at 12:35 PM, Jonas Sicking wrote: > On Mon, Nov 1, 2010 at 3:17 PM, Shawn Wilsher 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

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

2010-11-04 Thread Jonas Sicking
On Thu, Nov 4, 2010 at 3:36 PM, Jeremy Orlow wrote: > On Thu, Nov 4, 2010 at 12:35 PM, Jonas Sicking wrote: >> >> On Mon, Nov 1, 2010 at 3:17 PM, Shawn Wilsher wrote: >> > On 11/1/2010 5:29 AM, Jeremy Orlow wrote: >> >> >> >>  If not, I think we should avoid adding surface area for something we

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

2010-11-04 Thread Jeremy Orlow
On Thu, Nov 4, 2010 at 3:47 PM, Jonas Sicking wrote: > On Thu, Nov 4, 2010 at 3:36 PM, Jeremy Orlow wrote: > > On Thu, Nov 4, 2010 at 12:35 PM, Jonas Sicking wrote: > >> > >> On Mon, Nov 1, 2010 at 3:17 PM, Shawn Wilsher > wrote: > >> > On 11/1/2010 5:29 AM, Jeremy Orlow wrote: > >> >> > >> >>

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

2010-11-04 Thread Jonas Sicking
On Thu, Nov 4, 2010 at 4:03 PM, Jeremy Orlow wrote: > On Thu, Nov 4, 2010 at 3:47 PM, Jonas Sicking wrote: >> >> On Thu, Nov 4, 2010 at 3:36 PM, Jeremy Orlow wrote: >> > On Thu, Nov 4, 2010 at 12:35 PM, Jonas Sicking wrote: >> >> >> >> On Mon, Nov 1, 2010 at 3:17 PM, Shawn Wilsher >> >> wrote:

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

2010-11-04 Thread Ian Hickson
On Thu, 4 Nov 2010, Jonas Sicking wrote: > > > Also, do any of those examples have just 2 states? > > No. Early drafts of several of them just had two states, actually, but in each case we ended up adding more later. -- Ian Hickson U+1047E)\._.,--,'``.fL