Content-Length: 282006 | pFad | https://github.com/w3c/IndexedDB/issues/192

B8 create/deleteObjectStore: InvalidStateError logic does not match impls/tests · Issue #192 · w3c/IndexedDB · GitHub
Skip to content

create/deleteObjectStore: InvalidStateError logic does not match impls/tests #192

@inexorabletash

Description

@inexorabletash

Spec has:

Let transaction be the upgrade transaction associated with database. If one does not exist or it is finished, throw an "InvalidStateError" DOMException.

But in this case, a TransactionInactiveError is thrown instead in Chrome/Firefox and asserted as such in tests:

tx.abort();
db.createObjectStore('s'); // throws TransactionInactiveError

Noted by the ever vigilant @brettz9 over in web-platform-tests/wpt#5612 but it's the spec that's wrong here since impls/tests match.

Unfortunately, the "finished" notion for transactions is a bit squishy. Spec-wise we may be able to just drop the "or it is finished" bit from these methods and then tidy up the transaction lifecycle at some point in the future.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/w3c/IndexedDB/issues/192

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy