[Webkit-unassigned] [Bug 149107] New: IndexedDB does not throw ConstraintErrors for unique keys

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 13 12:45:50 PDT 2015


            Bug ID: 149107
           Summary: IndexedDB does not throw ConstraintErrors for unique
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Macintosh
                OS: Mac OS X 10.10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nolan at nolanlawson.com

Created attachment 261088
  --> https://bugs.webkit.org/attachment.cgi?id=261088&action=review
Reproducible test case

(May be a dup of https://bugs.webkit.org/show_bug.cgi?id=60720, but it was marked as invalid because they didn't have a good reproducible test case.)

In WebKit Nightly 600.8.9 (as well as Safari 8.0.8), it is possible to put() two documents with the same key, even if that key is defined as a unique index.

I have a reproducible test case to demonstrate: http://bl.ocks.org/nolanlawson/28ff2db3f3cb386c8ecb. The same test is also attached to this bug.

If the bug has been successfully reproduced, then this HTML page will print "There is a bug." Note that openKeyCursor() also returns the same key twice.

This bug cannot be reproduced in either Firefox or Chrome.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150913/f11dcfc0/attachment-0001.html>

More information about the webkit-unassigned mailing list