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

RE: [IndexedDB] Sync API for setVersion Changes

From: Israel Hilerio <israelh@microsoft.com>
Date: Thu, 21 Apr 2011 21:50:55 +0000
To: Jonas Sicking <jonas@sicking.cc>
CC: "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <F695AF7AA77CC745A271AD0F61BBC61E3D019BAA@TK5EX14MBXC117.redmond.corp.microsoft.com>
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.

israel
Received on Thursday, 21 April 2011 21:51:26 GMT

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