Skip to content

Add missing check for deleted object store #42436

@jdm

Description

@jdm

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)

Metadata

Metadata

Assignees

Labels

A-content/indexeddbIndexedDB implementation issues.C-has-open-prThere is a PR open that resolves the issueE-less-complexStraightforward. Recommended for a new contributor.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions