[Webkit-unassigned] [Bug 60763] New: IndexedDB chooses wrong record on PREV_NO_DUPLICATE index key cursor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 13 06:42:49 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=60763

           Summary: IndexedDB chooses wrong record on PREV_NO_DUPLICATE
                    index key cursor
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pilgrim at chromium.org
                CC: fishd at chromium.org, tony at chromium.org,
                    hans at chromium.org, dgrogan at chromium.org,
                    pilgrim at chromium.org


Original test: http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_indexes.html?force=1

This is an adapation of part of a test from Mozilla's IndexedDB test suite. It creates an object store with several rows, creates indexes on each key, and iterates through an index key cursor from end to start using the PREV_NO_DUPLICATE flag. Of two records that contain the same key in the index, the cursor chooses the wrong one. Or, at least, a different one than Mozilla chooses.

In the attached test case, Joe and Pat have the same height. In an index key cursor on the 'height' key with a null key range, starting at the end and moving backward with PREV_NO_DUPLICATE, the test expects to find Joe, but WebKit finds Pat instead.

Similar to bug 60746, and I suspect the fix is similar (but in a different method, thus a separate bug report).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list