Skip to content

indexeddb: Allow duplicate index names in different tables - #62569

Merged
servo-wpt-sync merged 2 commits into
web-platform-tests:masterfrom
servo:servo_export_47936
Sep 13, 2026
Merged

servo-wpt-sync merged 2 commits into
web-platform-tests:masterfrom
servo:servo_export_47936

Conversation

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Change the indexes SQLite table to only require the combination of object store id and index name to be unique. See the spec:

If an index named name already exists in store, throw a "ConstraintError" DOMException.

Testing: Added WPT. Test for negative case with duplicate names in same table already exists and is still passing so no regression there.
Fixes: #47927

Reviewed in servo/servo#47936

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync
servo-wpt-sync merged commit 250a471 into web-platform-tests:master Sep 13, 2026
28 checks passed
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_47936 branch September 13, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants