-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add missing check for deleted object store #42436
Copy link
Copy link
Closed
Labels
A-content/indexeddbIndexedDB implementation issues.IndexedDB implementation issues.C-has-open-prThere is a PR open that resolves the issueThere is a PR open that resolves the issueE-less-complexStraightforward. Recommended for a new contributor.Straightforward. Recommended for a new contributor.
Description
Step 4 of https://w3c.github.io/IndexedDB/#dom-idbobjectstore-createindex says:
If store has been deleted, throw an "InvalidStateError" DOMException.
We have a TODO for this step:
| // TODO: Step 4. If store has been deleted, throw an "InvalidStateError" DOMException. |
However, we have an implementation that can check this already:
| fn verify_not_deleted(&self) -> ErrorResult { |
Tests: ./mach test-wpt tests/wpt/tests/IndexedDB/idbobjectstore_createIndex.any.js (should have a new unexpected pass)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/indexeddbIndexedDB implementation issues.IndexedDB implementation issues.C-has-open-prThere is a PR open that resolves the issueThere is a PR open that resolves the issueE-less-complexStraightforward. Recommended for a new contributor.Straightforward. Recommended for a new contributor.