Wrong error fired when calling cursor.update on an openKeyCursor cursor - complains about readonly transaction

UNCONFIRMED
Unassigned

Status

()

Core
DOM: IndexedDB
P3
normal
UNCONFIRMED
10 months ago
10 months ago

People

(Reporter: mstange, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 months ago
I have a rough recollection of this happening earlier today but I haven't made sure that it's actually true. Filing it anyway in case it is.

If you have an index, and iterate over records in its object store with a cursor retrieved from index.openKeyCursor(), calling cursor.update() triggers an exception that complains about the transaction being readonly. Instead, it should trigger an InvalidStateError that mentions that cursor.update() only works on cursors obtained with index.openCursor().

Updated

10 months ago
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.