Re: [IndexedDB] Should .add/.put/.update throw when called in read-only transaction?

2010-07-02 Thread Jeremy Orlow
Ok. Want to write up a proposal for how to implement this (presumably in a bug)? J On Fri, Jul 2, 2010 at 6:38 AM, ben turner b...@mozilla.com wrote: I would also point out that throwing exceptions at the call site makes debugging much easier in my opinion. Our error events currently don't

RE: question about number of occurrences of author and content elements (in Widget packaging spec)

2010-07-02 Thread David Rogers
No, it is in webapps (all the widgets work is there) - try: public-webapps@w3.org Cheers! David. -Original Message- From: Ricardo Varela [mailto:pho...@gmail.com] Sent: 02 July 2010 09:02 To: David Rogers Subject: Re: question about number of occurrences of author and content

Re: Custom DOM events and privileged browser add-ons; Was: Bubbling/Capturing for XHR + other non-DOM objects

2010-07-02 Thread Anne van Kesteren
On Wed, 30 Jun 2010 22:39:48 +0200, Boris Zbarsky bzbar...@mit.edu wrote: On 6/29/10 2:36 PM, Chris Wilson wrote: See, this is exactly why we asked the question - because it seems that behavior is inconsistent, we're not sure what the expectation is. Note that the Firefox behavior I

Re: [IndexedDB] .value of no-duplicate cursors

2010-07-02 Thread ben turner
I think I would be happy just removing the _NO_DUPLICATE directions. As Jeremy noted it is quite easy to emulate and it would then be up to the webapp author whether she wanted the first or last duplicate value. -Ben On Wed, Jun 30, 2010 at 11:56 PM, Jonas Sicking jo...@sicking.cc wrote: On

Re: [IndexedDB] .value of no-duplicate cursors

2010-07-02 Thread ben turner
I think I would be happy just removing the _NO_DUPLICATE directions. As Jeremy noted it is quite easy to emulate and it would then be up to the webapp author whether she wanted the first or last duplicate value. -Ben On Wed, Jun 30, 2010 at 11:56 PM, Jonas Sicking jo...@sicking.cc wrote: On

Re: [IndexedDB] Should .add/.put/.update throw when called in read-only transaction?

2010-07-02 Thread ben turner
I would also point out that throwing exceptions at the call site makes debugging much easier in my opinion. Our error events currently don't include information like filename and line number where the failing request was generated (though I think we should add that eventually). Exceptions are much

Re: [IndexedDB] Should .add/.put/.update throw when called in read-only transaction?

2010-07-02 Thread ben turner
I would also point out that throwing exceptions at the call site makes debugging much easier in my opinion. Our error events currently don't include information like filename and line number where the failing request was generated (though I think we should add that eventually). Exceptions are much

[Bug 10064] New: Modifying functions should throw when called under invalid conditions

2010-07-02 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10064 Summary: Modifying functions should throw when called under invalid conditions Product: WebAppsWG Version: unspecified Platform: PC OS/Version: All Status: NEW

Re: [IndexedDB] Should .add/.put/.update throw when called in read-only transaction?

2010-07-02 Thread Jonas Sicking
Filed http://www.w3.org/Bugs/Public/show_bug.cgi?id=10064 if you want help with the editing, or this is unclear, let me know. / Jonas On Fri, Jul 2, 2010 at 12:56 AM, Jeremy Orlow jor...@chromium.org wrote: Ok. Want to write up a proposal for how to implement this (presumably in a bug)? J On

Re: question about number of occurrences of author and content elements (in Widget packaging spec)

2010-07-02 Thread Marcos Caceres
Hi Ricardo, (moving discussion to public-webapps) On 7/2/10 5:56 AM, Ricardo Varela wrote: hallo all, hallo Marcos, We have a small question regarding what we interpret may be an inconsistency in the behaviours for parsing a config file as commented in the W3C widget packaging spec [1]

Re: Custom DOM events and privileged browser add-ons; Was: Bubbling/Capturing for XHR + other non-DOM objects

2010-07-02 Thread Bjoern Hoehrmann
* Jonas Sicking wrote: On Fri, Jul 2, 2010 at 1:29 AM, Anne van Kesteren ann...@opera.com wrote: On Wed, 30 Jun 2010 22:39:48 +0200, Boris Zbarsky bzbar...@mit.edu wrote: I think Anne answered the question, in any case: the XHR event target chain only contains the XHR object itself and nothing

Re: Custom DOM events and privileged browser add-ons; Was: Bubbling/Capturing for XHR + other non-DOM objects

2010-07-02 Thread Anne van Kesteren
On Fri, 02 Jul 2010 12:57:08 +0200, Bjoern Hoehrmann derhoe...@gmx.net wrote: * Anne van Kesteren wrote: You have to read DOM Events either way. Not to answer the particular question. Sure, you might have read the DOM Events specification, say, to figure out what Event.currentTarget is but

Re: Custom DOM events and privileged browser add-ons; Was: Bubbling/Capturing for XHR + other non-DOM objects

2010-07-02 Thread Bjoern Hoehrmann
* Anne van Kesteren wrote: You'd have to read it to figure out what the event flow is, for instance. Which is something that is much more likely to stick with you, yes. I disagree. Only Node objects have event flow and the Window object interacts with those in a particular way. All other

Re: [IndexedDB] Should .add/.put/.update throw when called in read-only transaction?

2010-07-02 Thread Andrei Popescu
On Thu, Jul 1, 2010 at 2:17 AM, Jonas Sicking jo...@sicking.cc wrote: Additionally, the structured clone algorithm, which defines that an exception should synchronously be thrown if the object is malformed, for example if it consists of a cyclic graph. So .add/.put/.update can already throw

RE: Custom DOM events and privileged browser add-ons; Was: Bubbling/Capturing for XHR + other non-DOM objects

2010-07-02 Thread Chris Wilson
Jonas Sicking [mailto:jo...@sicking.cc] wrote: On Fri, Jul 2, 2010 at 1:29 AM, Anne van Kesteren ann...@opera.com wrote: On Wed, 30 Jun 2010 22:39:48 +0200, Boris Zbarsky bzbar...@mit.edu wrote: On 6/29/10 2:36 PM, Chris Wilson wrote: See, this is exactly why we asked the question - because it

Re: Custom DOM events and privileged browser add-ons; Was: Bubbling/Capturing for XHR + other non-DOM objects

2010-07-02 Thread Jonas Sicking
On Fri, Jul 2, 2010 at 3:03 AM, Bjoern Hoehrmann derhoe...@gmx.net wrote: * Jonas Sicking wrote: On Fri, Jul 2, 2010 at 1:29 AM, Anne van Kesteren ann...@opera.com wrote: On Wed, 30 Jun 2010 22:39:48 +0200, Boris Zbarsky bzbar...@mit.edu wrote: I think Anne answered the question, in any case:

[Bug 10064] Modifying functions should throw when called under invalid conditions

2010-07-02 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10064 Andrei Popescu andr...@google.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [IndexedDB] Should .add/.put/.update throw when called in read-only transaction?

2010-07-02 Thread Andrei Popescu
On Fri, Jul 2, 2010 at 10:43 AM, Jonas Sicking jo...@sicking.cc wrote: Filed http://www.w3.org/Bugs/Public/show_bug.cgi?id=10064 Fixed. Please have a look, in case I missed or got anything wrong. Thanks! Andrei

Re: [IndexedDB] Should .add/.put/.update throw when called in read-only transaction?

2010-07-02 Thread Jonas Sicking
On Fri, Jul 2, 2010 at 1:02 PM, Andrei Popescu andr...@google.com wrote: On Fri, Jul 2, 2010 at 10:43 AM, Jonas Sicking jo...@sicking.cc wrote: Filed http://www.w3.org/Bugs/Public/show_bug.cgi?id=10064 Fixed. Please have a look, in case I missed or got anything wrong. Thanks! For add and put

Re: BlobWriter simplification/split

2010-07-02 Thread Maciej Stachowiak
On Jun 30, 2010, at 10:29 AM, Eric Uhrhane wrote: On Wed, Jun 30, 2010 at 10:18 AM, Jonas Sicking jo...@sicking.cc wrote: May I propose FileWriter in place of BlobWriter? ;-) You are actually always writing to files, so it would make a lot of sense IMO. We renamed BlobReader based on

RE: Custom DOM events and privileged browser add-ons; Was: Bubbling/Capturing for XHR + other non-DOM objects

2010-07-02 Thread Chris Wilson
Can you point me to where? XHR L2 spec says To dispatch a readystatechange event means that an event with the name readystatechange, with no namespace, which does not bubble and is not cancelable, and which uses the Event interface, is to be dispatched at the XMLHttpRequest object. (end of

[IndexedDB] Cursors and modifications

2010-07-02 Thread Jonas Sicking
Hi All, We ran into an complicated issue while implementing IndexedDB. In short, what should happen if an object store is modified while a cursor is iterating it? Note that the modification can be done within the same transaction, so the read/write locks preventing several transactions from

RE: [IndexedDB] Cursors and modifications

2010-07-02 Thread Pablo Castro
From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] On Behalf Of Jonas Sicking Sent: Friday, July 02, 2010 4:00 PM We ran into an complicated issue while implementing IndexedDB. In short, what should happen if an object store is modified while a cursor is iterating

Re: [IndexedDB] Cursors and modifications

2010-07-02 Thread Jonas Sicking
On Fri, Jul 2, 2010 at 4:40 PM, Pablo Castro pablo.cas...@microsoft.com wrote: From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] On Behalf Of Jonas Sicking Sent: Friday, July 02, 2010 4:00 PM We ran into an complicated issue while implementing IndexedDB. In short,

Re: [IndexedDB] Cursors and modifications

2010-07-02 Thread Andrei Popescu
On Sat, Jul 3, 2010 at 1:14 AM, Jonas Sicking jo...@sicking.cc wrote: On Fri, Jul 2, 2010 at 4:40 PM, Pablo Castro pablo.cas...@microsoft.com wrote: From: public-webapps-requ...@w3.org [mailto:public-webapps-requ...@w3.org] On Behalf Of Jonas Sicking Sent: Friday, July 02, 2010 4:00 PM

Re: [IndexedDB] Should .add/.put/.update throw when called in read-only transaction?

2010-07-02 Thread Andrei Popescu
On Fri, Jul 2, 2010 at 9:45 PM, Jonas Sicking jo...@sicking.cc wrote: On Fri, Jul 2, 2010 at 1:02 PM, Andrei Popescu andr...@google.com wrote: On Fri, Jul 2, 2010 at 10:43 AM, Jonas Sicking jo...@sicking.cc wrote: Filed http://www.w3.org/Bugs/Public/show_bug.cgi?id=10064 Fixed. Please have a

Re: [IndexedDB] Cursors and modifications

2010-07-02 Thread Jonas Sicking
On Fri, Jul 2, 2010 at 5:44 PM, Andrei Popescu andr...@google.com wrote: On Sat, Jul 3, 2010 at 1:14 AM, Jonas Sicking jo...@sicking.cc wrote: On Fri, Jul 2, 2010 at 4:40 PM, Pablo Castro pablo.cas...@microsoft.com wrote: From: public-webapps-requ...@w3.org

Re: BlobWriter simplification/split

2010-07-02 Thread Jonas Sicking
On Fri, Jul 2, 2010 at 2:52 PM, Maciej Stachowiak m...@apple.com wrote: On Jun 30, 2010, at 10:29 AM, Eric Uhrhane wrote: On Wed, Jun 30, 2010 at 10:18 AM, Jonas Sicking jo...@sicking.cc wrote: May I propose FileWriter in place of BlobWriter? ;-) You are actually always writing to files, so

Re: [IndexedDB] Cursors and modifications

2010-07-02 Thread Jeremy Orlow
On Sat, Jul 3, 2010 at 11:09 AM, Jonas Sicking jo...@sicking.cc wrote: On Fri, Jul 2, 2010 at 5:44 PM, Andrei Popescu andr...@google.com wrote: On Sat, Jul 3, 2010 at 1:14 AM, Jonas Sicking jo...@sicking.cc wrote: On Fri, Jul 2, 2010 at 4:40 PM, Pablo Castro pablo.cas...@microsoft.com

Re: [IndexedDB] Cursors and modifications

2010-07-02 Thread Jeremy Orlow
On Sat, Jul 3, 2010 at 11:09 AM, Jonas Sicking jo...@sicking.cc wrote: On Fri, Jul 2, 2010 at 5:44 PM, Andrei Popescu andr...@google.com wrote: On Sat, Jul 3, 2010 at 1:14 AM, Jonas Sicking jo...@sicking.cc wrote: On Fri, Jul 2, 2010 at 4:40 PM, Pablo Castro pablo.cas...@microsoft.com

Re: [IndexedDB] Cursors and modifications

2010-07-02 Thread Jonas Sicking
On Fri, Jul 2, 2010 at 7:27 PM, Jeremy Orlow jor...@chromium.org wrote: On Sat, Jul 3, 2010 at 11:09 AM, Jonas Sicking jo...@sicking.cc wrote: On Fri, Jul 2, 2010 at 5:44 PM, Andrei Popescu andr...@google.com wrote: On Sat, Jul 3, 2010 at 1:14 AM, Jonas Sicking jo...@sicking.cc wrote: On

Re: How to get a FileWriter/BlobWriter/BlobSaver

2010-07-02 Thread Jonas Sicking
On Thu, Jul 1, 2010 at 3:31 PM, Eric Uhrhane er...@google.com wrote: The biggest unknown in the current BlobWriter spec [1] is how you obtain one in the first place. There are two current proposals, which I've summarized below.  I've heard only a few voices on this topic, and would love to get