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

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 UTC