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

[Bug 11401] [IndexedDB] We should disallow .transaction() from within setVersion transactions

From: <bugzilla@jessica.w3.org>
Date: Thu, 09 Jun 2011 18:16:02 +0000
To: public-webapps@w3.org
Message-Id: <E1QUjly-0007OX-Oq@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11401

Eliot Graff <eliotgra@microsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Eliot Graff <eliotgra@microsoft.com> 2011-06-09 18:16:01 UTC ---
Added these sentences to the description of IDBDatabase.transaction():

]]
This method must throw an IDBDatabaseException of type NOT_ALLOWED_ERR if the
transaction method is called within the onsuccess handler of a setVersion
request. This method also must throw an IDBDatabaseException of type
NOT_ALLOWED_ERR if the transaction method is called when there is a pending
setVersion call. In short, the transaction method throws NOT_ALLOWED_ERR from
the time that setVersion is called to the point when the complete event is
fired on the resulting transaction. 
[[

I did not add anything to IDBDatabaseSync.transaction(), which already has this
in the description:

]]
This method must throw an IDBDatabaseException with a NOT_ALLOWED_ERR
description when it is called within the IDBTransactionCallback of a setVersion
method. 
[[

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Thursday, 9 June 2011 18:16:04 GMT

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