https://www.w3.org/Bugs/Public/show_bug.cgi?id=15234

           Summary: Throw if IDBTransaction.objectStore() or
                    IDBObjectStore.index() called after transaction
                    finished
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Indexed Database API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
                CC: [email protected], [email protected]


The spec currently requires that IDBTransaction.objectStore() and
IDBObjectStore.index() are callable after the containing transaction has
finished. Since the "child" objects (IDBObjectStore and IDBIndex, respectively)
contain references to the parent object, this complicates lifecycle management
of these objects for implementations.

The implementation requirements could be simplified by specifying that these
methods throw InvalidStateError once the transaction is finished. Alternately,
the spec could be to throw TransactionInactiveError if the transaction is not
active, much like the get() methods.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to