Bug 207437

Summary: IndexedDB: iteration of cursors skip records if deleted
Product: WebKit Reporter: Sihui Liu <sihui_liu>
Component: New BugsAssignee: Sihui Liu <sihui_liu>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, alecflett, beidson, cdumez, commit-queue, ews-watchlist, jsbell, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 190917    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch for landing
none
Patch for landing
none
Patch none

Description Sihui Liu 2020-02-08 21:08:32 PST
https://bugs.webkit.org/show_bug.cgi?id=190917 did not fix the issue correctly. When records with same index key are deleted before cursor comes to their position, cursor would not be able to visit them. See modified test for the issue.
Comment 1 Sihui Liu 2020-02-08 21:48:35 PST
Created attachment 390196 [details]
Patch
Comment 2 Sihui Liu 2020-02-11 14:25:53 PST
Created attachment 390424 [details]
Patch
Comment 3 Sihui Liu 2020-02-11 14:53:30 PST
Created attachment 390440 [details]
Patch
Comment 4 Brady Eidson 2020-02-11 16:27:23 PST
Comment on attachment 390440 [details]
Patch

Two copies of the ChangeLog
Comment 5 Sihui Liu 2020-02-11 16:46:11 PST
Created attachment 390465 [details]
Patch for landing
Comment 6 Sihui Liu 2020-02-11 16:47:40 PST
Created attachment 390466 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2020-02-11 17:05:53 PST
Comment on attachment 390466 [details]
Patch for landing

Clearing flags on attachment: 390466

Committed r256414: <https://trac.webkit.org/changeset/256414>
Comment 8 WebKit Commit Bot 2020-02-11 17:05:55 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2020-02-11 17:06:18 PST
<rdar://problem/59370439>
Comment 10 Sihui Liu 2020-02-12 13:40:39 PST
Reopening to attach new patch.
Comment 11 Sihui Liu 2020-02-12 13:40:40 PST
Created attachment 390552 [details]
Patch
Comment 12 Sihui Liu 2020-02-12 13:43:04 PST
Patch is associated to the wrong bug..