Re: ISSUE-173 (ericu): terminal FileWriter progress events should be queued [File API: Writer]

2010-12-10 Thread Jonas Sicking
On Fri, Dec 10, 2010 at 3:30 PM, Eric Uhrhane wrote: > On Fri, Dec 10, 2010 at 3:17 PM, James Robinson wrote: >> On Fri, Dec 10, 2010 at 2:04 PM, Eric Uhrhane wrote: >>> >>> On Fri, Dec 10, 2010 at 2:39 AM, Anne van Kesteren >>> wrote: >>> > On Fri, 10 Dec 2010 03:24:38 +0100, Web Applications

RE: [Bug 11398] New: [IndexedDB] Methods that take multiple optional parameters should instead take an options object

2010-12-10 Thread Pablo Castro
From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] On Behalf Of Jeremy Orlow Sent: Friday, December 10, 2010 7:27 AM >> >> In addition to createObjectStore, I also intend to convert the following >> over: >> >> >> IDBObjectStore.createIndex >> IDBObjectStore.openCursor >

Re: ISSUE-173 (ericu): terminal FileWriter progress events should be queued [File API: Writer]

2010-12-10 Thread Eric Uhrhane
On Fri, Dec 10, 2010 at 3:17 PM, James Robinson wrote: > On Fri, Dec 10, 2010 at 2:04 PM, Eric Uhrhane wrote: >> >> On Fri, Dec 10, 2010 at 2:39 AM, Anne van Kesteren >> wrote: >> > On Fri, 10 Dec 2010 03:24:38 +0100, Web Applications Working Group Issue >> > Tracker wrote: >> >> >> >> ISSUE-17

Re: ISSUE-173 (ericu): terminal FileWriter progress events should be queued [File API: Writer]

2010-12-10 Thread James Robinson
On Fri, Dec 10, 2010 at 2:04 PM, Eric Uhrhane wrote: > On Fri, Dec 10, 2010 at 2:39 AM, Anne van Kesteren > wrote: > > On Fri, 10 Dec 2010 03:24:38 +0100, Web Applications Working Group Issue > > Tracker > wrote: > >> > >> ISSUE-173 (ericu): terminal FileWriter progress events should be queued >

Re: [Bug 11406] New: [IndexedDB] IDBDatabase.transaction needs to specify exception for invalid mode parameter

2010-12-10 Thread Cameron McCormack
Jonas Sicking: > Specifying an exception to throw for functions that take enums if a > invalid value is passed to the function. Ah, I misunderstood. Would you want a standard exception (like TypeError, or one of the DOMExceptions from DOM Core) or be able to have the IDL specify what exception is

Re: [Bug 11406] New: [IndexedDB] IDBDatabase.transaction needs to specify exception for invalid mode parameter

2010-12-10 Thread Jonas Sicking
On Fri, Dec 10, 2010 at 1:57 PM, Cameron McCormack wrote: > Jeremy Orlow: >> > Similar with the direction for openCursor or anything that takes in >> > an enum. I don't see any existing error that's a particularly good >> > match for these. Maybe I should add an ENUM_ERR or something? > > Jonas Si

Re: ISSUE-173 (ericu): terminal FileWriter progress events should be queued [File API: Writer]

2010-12-10 Thread Eric Uhrhane
On Fri, Dec 10, 2010 at 2:39 AM, Anne van Kesteren wrote: > On Fri, 10 Dec 2010 03:24:38 +0100, Web Applications Working Group Issue > Tracker wrote: >> >> ISSUE-173 (ericu): terminal FileWriter progress events should be queued >> [File API: Writer] >> >> http://www.w3.org/2008/webapps/track/issu

Re: [Bug 11406] New: [IndexedDB] IDBDatabase.transaction needs to specify exception for invalid mode parameter

2010-12-10 Thread Cameron McCormack
Jeremy Orlow: > > Similar with the direction for openCursor or anything that takes in > > an enum. I don't see any existing error that's a particularly good > > match for these. Maybe I should add an ENUM_ERR or something? Jonas Sicking: > Would be great if WebIDL could help out here. Cameron, I s

Re: [Bug 11406] New: [IndexedDB] IDBDatabase.transaction needs to specify exception for invalid mode parameter

2010-12-10 Thread Jonas Sicking
On Fri, Dec 10, 2010 at 7:49 AM, Jeremy Orlow wrote: > Similar with the direction for openCursor or anything that takes in an enum. > I don't see any existing error that's a particularly good match for these. > Maybe I should add an ENUM_ERR or something? Would be great if WebIDL could help out h

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-12-10 Thread Jonas Sicking
On Fri, Dec 10, 2010 at 7:32 AM, Jeremy Orlow wrote: > Any more thoughts on this? I don't feel strongly one way or another. Implementation wise I don't really understand why implementations couldn't use keys of unlimited size. I wouldn't imagine implementations would want to use fixed-size alloca

Re: [Bug 11394] New: We should throw if continue() is called with a key <= the current position

2010-12-10 Thread Jonas Sicking
On Fri, Dec 10, 2010 at 6:48 AM, Jeremy Orlow wrote: > What exception should we throw?  CONSTRAINT_ERR? Sounds good to me. / Jonas

Re: [IndexedDB] Events and requests

2010-12-10 Thread Jonas Sicking
I've been reaching out to get feedback, but no success yet. Will re-poke. / Jonas On Fri, Dec 10, 2010 at 4:33 AM, Jeremy Orlow wrote: > Any additional thoughts on this?  If no one else cares, then we can go with > Jonas' proposal (and we should file a bug). > J > > On Thu, Nov 11, 2010 at 12:06

Re: [Bug 11375] New: [IndexedDB] Error codes need to be assigned new numbers

2010-12-10 Thread Jeremy Orlow
On Fri, Dec 10, 2010 at 6:01 PM, Shawn Wilsher wrote: > On 12/10/2010 5:03 AM, Jeremy Orlow wrote: > >> Speaking of which, we use UNKNOWN_ERR for a bunch of other >> internal consistency issues. Is this OK by everyone, should we use >> another, >> or should we create a new one? (Ideally these i

Re: [Bug 11398] New: [IndexedDB] Methods that take multiple optional parameters should instead take an options object

2010-12-10 Thread Shawn Wilsher
On 12/10/2010 7:27 AM, Jeremy Orlow wrote: We did all of these two weeks ago in Chromium and have gotten some feedback. The main downside is that typos are silently ignored by JavaScript. We considered throwing if someone passed in an option we didn't recognize, but this would make it impossib

Re: [Bug 11375] New: [IndexedDB] Error codes need to be assigned new numbers

2010-12-10 Thread Shawn Wilsher
On 12/10/2010 5:03 AM, Jeremy Orlow wrote: Speaking of which, we use UNKNOWN_ERR for a bunch of other internal consistency issues. Is this OK by everyone, should we use another, or should we create a new one? (Ideally these issues will be few and far between as we make things more robust.) Wou

[Bug 11530] No transaction should start until after all others that were created first and whose scope overlaps

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11530 Jeremy Orlow changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 11530] New: No transaction should start until after all others that were created first and whose scope overlaps

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11530 Summary: No transaction should start until after all others that were created first and whose scope overlaps Product: WebAppsWG Version: unspecified Platform: PC OS/Version: A

[Bug 11527] Remove dynamic transactions from the spec

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11527 Jeremy Orlow changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 11528] New: We should add some form of dynamic transaction to IndexedDB

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11528 Summary: We should add some form of dynamic transaction to IndexedDB Product: WebAppsWG Version: unspecified Platform: PC OS/Version: All Status: NEW Sev

[Bug 11527] New: Remove dynamic transactions from the spec

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11527 Summary: Remove dynamic transactions from the spec Product: WebAppsWG Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2

Re: [Bug 11406] New: [IndexedDB] IDBDatabase.transaction needs to specify exception for invalid mode parameter

2010-12-10 Thread Jeremy Orlow
Similar with the direction for openCursor or anything that takes in an enum. I don't see any existing error that's a particularly good match for these. Maybe I should add an ENUM_ERR or something? J On Thu, Nov 25, 2010 at 12:42 PM, wrote: > http://www.w3.org/Bugs/Public/show_bug.cgi?id=11406

[Bug 11349] [IndexedDB] Null should not be a valid key type

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11349 Jeremy Orlow changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Bug 11351] New: [IndexedDB] Should we have a maximum key size (or something like that)?

2010-12-10 Thread Jeremy Orlow
Any more thoughts on this? On Mon, Nov 22, 2010 at 12:05 PM, Jeremy Orlow wrote: > Something working (but with degraded performance) is better than not > working at all. Especially when keys will often come from user data/input > and thus simple web apps will likely not handle the exceptions la

Re: [Bug 11398] New: [IndexedDB] Methods that take multiple optional parameters should instead take an options object

2010-12-10 Thread Jeremy Orlow
In addition to createObjectStore, I also intend to convert the following over: IDBObjectStore.createIndex IDBObjectStore.openCursor IDBIndex.openCursor IDBIndex.openKeyCursor IDBKeyRange.bound We did all of these two weeks ago in Chromium and have gotten some feedback. The main downside is that

Re: [Bug 11394] New: We should throw if continue() is called with a key <= the current position

2010-12-10 Thread Jeremy Orlow
What exception should we throw? CONSTRAINT_ERR? On Tue, Nov 23, 2010 at 11:50 PM, wrote: > http://www.w3.org/Bugs/Public/show_bug.cgi?id=11394 > > Summary: We should throw if continue() is called with a key <= >the current position > Product: WebAppsWG >

[Bug 11389] IDBTransaction.READ_ONLY should probably be 0

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11389 Jeremy Orlow changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Bug 11375] New: [IndexedDB] Error codes need to be assigned new numbers

2010-12-10 Thread Jeremy Orlow
I was confused re not overlapping with other exception codes. As long as we don't have overlap within this particular exception type, we're OK. I noticed that QUOTA_ERR is commented out. I can't remember when or why and the blame history is a bit mangled. Does anyone else? In Chromium we curre

Re: [IndexedDB] Compound and multiple keys

2010-12-10 Thread Jeremy Orlow
Any other thoughts on this issue? On Thu, Dec 2, 2010 at 7:19 AM, Keean Schupke wrote: > I think I prefer A. Declaring the keys in advance is stating to sound a > little like a schema, and when you go down that route you end up at SQL > schemas (which is a good thing in my opinion). I understand

Re: [IndexedDB] Events and requests

2010-12-10 Thread Jeremy Orlow
Any additional thoughts on this? If no one else cares, then we can go with Jonas' proposal (and we should file a bug). J On Thu, Nov 11, 2010 at 12:06 PM, Jeremy Orlow wrote: > On Tue, Nov 9, 2010 at 11:35 AM, Jonas Sicking wrote: > >> Hi All, >> >> One of the things we briefly discussed at t

[Bug 9769] IDBObjectStoreRequest/Sync.put should be split into 3 methods

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9769 Jeremy Orlow changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|

[Bug 10303] Transactions should not commit if code unwinds because of an exception

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10303 Jeremy Orlow changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 10590] [IndexedDB] Default timeout duration needs to be specced

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10590 Jeremy Orlow changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 11407] [IndexedDB] IDBDatabase.createObjectStore: autoIncrement should not default to true

2010-12-10 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11407 Jeremy Orlow changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: ISSUE-173 (ericu): terminal FileWriter progress events should be queued [File API: Writer]

2010-12-10 Thread Anne van Kesteren
On Fri, 10 Dec 2010 03:24:38 +0100, Web Applications Working Group Issue Tracker wrote: ISSUE-173 (ericu): terminal FileWriter progress events should be queued [File API: Writer] http://www.w3.org/2008/webapps/track/issues/173 Raised by: Eric Uhrhane On product: File API: Writer When a Fil