Closed Bug 692641 Opened 13 years ago Closed 13 years ago

IndexedDB: Don't throw for invalid key-value at keypath

Categories

(Core :: Storage: IndexedDB, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sicking, Unassigned)

References

Details

If you have an index with keypath "foo" and try to insert data like: { foo: {} } We currently throw. However if the "foo" property doesn't exist at all we don't create an entry in the index. In both cases we shouldn't create an entry in the index. I need to verify that this is the behavior people actually want on the webapps list. So make sure to do this before we start writing code here. This scenario arises both when inserting data into an objectStore, and when creating a new index for an objectStore which already has data.
Turns out we do this correctly!
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Component: DOM → DOM: IndexedDB
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.