Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IndexedDB: objectStore() should fail after transaction is aborted
Noticed via code inspection: The IDBTransaction::objectStore() and IDBObjectStore::index() methods return IDBObjectStore and IDBIndex objects when the transaction is alive, but are specified to throw when "finished". Blink splits this to two different states: |kFinishing| when abort() is called or a commit is triggered, and |kFinished| when the backend has ack'd. The implementation of index() was including the |kFinishing| state in its check, but the implementation of objectStore() was not. Align the checks to include both states, which matches the behavior in Firefox, and add web-platform-test coverage. R=pwnall@chromium.org Review-Url: https://codereview.chromium.org/2820593002 Cr-Commit-Position: refs/heads/master@{#464569}
- Loading branch information