[Webkit-unassigned] [Bug 63054] New: IndexedDB: createObjectStore() should check if keypath is valid

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 21 00:36:01 PDT 2011


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

           Summary: IndexedDB: createObjectStore() should check if keypath
                    is valid
           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: haraken at google.com
                CC: haraken at google.com


The spec (http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBDatabase-createObjectStore-IDBObjectStore-DOMString-name-Object-optionalParameters) says "If keyPath is an array and any items in the array is not a valid key path, or if keyPath is a string and is not a valid key path then a NON_TRANSIENT_ERR error must be thrown". 

However, the current createObjectStore() does not check the keypath argument and thus it does not throw any exception when we give an invalid keypath. I attached the test case that should throw an exception.

-- 
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