Bug 128563

Summary: IDB: storage/indexeddb/mozilla/indexes.html fails
Product: WebKit Reporter: Brady Eidson <beidson>
Component: WebKit2Assignee: Brady Eidson <beidson>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, commit-queue, jsbell, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch v1 none

Description Brady Eidson 2014-02-10 16:23:30 PST
IDB: storage/indexeddb/mozilla/indexes.html fails

The reasons are:
1 - For key-only cursors, the wrong version of onSuccess is called.
2 - In debug builds it ASSERTs because in IDBRequest::onSuccess a key injection is attempted with a null keypath... which is silly.  No keypath, no key injection.
3 - For NextUnique index cursors, the secondary ordering was wrong (it was Descending, it should be Ascending)
Comment 1 Radar WebKit Bug Importer 2014-02-10 16:24:20 PST
<rdar://problem/16031590>
Comment 2 Brady Eidson 2014-02-10 16:28:22 PST
Created attachment 223767 [details]
Patch v1
Comment 3 Tim Horton 2014-02-10 16:53:11 PST
Comment on attachment 223767 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=223767&action=review

> Source/WebKit2/DatabaseProcess/IndexedDB/sqlite/SQLiteIDBCursor.cpp:100
>      if (hasLowerKey && !isLowerOpen)

This is pretty ugly.
Comment 4 WebKit Commit Bot 2014-02-10 18:24:21 PST
Comment on attachment 223767 [details]
Patch v1

Clearing flags on attachment: 223767

Committed r163849: <http://trac.webkit.org/changeset/163849>
Comment 5 WebKit Commit Bot 2014-02-10 18:24:23 PST
All reviewed patches have been landed.  Closing bug.