W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: [IndexedDB] Sync API for setVersion Changes

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 21 Apr 2011 16:25:34 -0700
Message-ID: <BANLkTim8h-BUkt+FR4sqJSBZ+e2CqW6Ddw@mail.gmail.com>
To: Israel Hilerio <israelh@microsoft.com>
Cc: "public-webapps@w3.org" <public-webapps@w3.org>
On Thu, Apr 21, 2011 at 2:50 PM, Israel Hilerio <israelh@microsoft.com> wrote:
> On Mon, Apr 20, 2011 at 3:12 PM, Jonas Sicking wrote:
>>
>> Looks great to me. Remember that we need to make both .transaction and
>> .setVersion throw if called within the callback from either of them.
>>
>> / Jonas
>>
>> On Mon, Apr 18, 2011 at 11:22 AM, Israel Hilerio <israelh@microsoft.com>
>> wrote:
>> > I've created a bug to outline a potential change to the Sync API to handle
>> the context for setVersion transaction inside a callback method.  I wanted to
>> follow up with the group to see what other people's thought about this
>> change.  The Bug has all the details for the proposed change.  The bug# is
>> 12438 [1].
>> >
>> > Thanks,
>> >
>> > Israel
>> >
>> > [1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=12438
>> >
>> >
>> >
> Good catch.  What about adding the following to those two methods:
>
> New setVersion Exception:
> * The setVersion method needs to throw IDBDatabaseException with a NOT_ALLOWED_ERR description when the setVersion method is called from within the IDBTransactionCallback of a transaction method.
>
> New transaction Exception:
> * The transaction method needs throw IDBDatabaseException  with a NOT_ALLOWED_ERR description when the transaction method is called from within the IDBTransactionCallback of a setVersion method.

Both should say "within the IDBTransactionCallback of a transaction or
setVersion method", right? Or simply "within the
IDBTransactionCallback".

/ Jonas
Received on Thursday, 21 April 2011 23:26:31 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:44 GMT