[Webkit-unassigned] [Bug 178380] New: IndexedDB index cursor stops when updating an object
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 17 00:41:53 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=178380
Bug ID: 178380
Summary: IndexedDB index cursor stops when updating an object
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: david.fahlander at gmail.com
Steps to reproduce:
1. Opening a cursor on an index (IDBIndex.prototype.openCursor())
2. req.onsuccess: call cursor.update() or store.put()
3. Next req.onsuccess indicates end of iteration (req.result is falsy)
Expected behavior:
...
3. Next req.onsuccess lands on the next object matched in the index.
Note: There seems not to be an issue for IDBObjectStore.prototype.openCursor(), it's just IDBIndex that fails.
Repro: http://dexie.org/test/dexie-issue-594/index.html
The repro should show:
3
3
But with Safari 10 or 11, it shows
3
1
The reason the last digit is 1, is because a call to Dexie.Collection.modify() will stop after first match, as it calls cursor.update() on it.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171017/dbc54de8/attachment.html>
More information about the webkit-unassigned
mailing list