[Webkit-unassigned] [Bug 62288] IndexedDB createObjectStore should throw if key path contains a space

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 19 14:17:23 PDT 2011


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





--- Comment #21 from Mark Pilgrim <pilgrim at chromium.org>  2011-07-19 14:17:23 PST ---
This is my best understanding...

createObjectStore(): should throw TypeError (this should be handled in the IDL, no need for C++ code)

createObjectStore(null): this should behave identically to createObjectStore("null"). Yeah, I'm not happy about it either.

createObjectStore(undefined): should throw TypeError

createIndex("name", {keyPath: undefined}): should throw NON_TRANSIENT_ERR

createIndex("name", {keyPath: null}): should throw NON_TRANSIENT_ERR

cite for the last 2: "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, or if keyPath is and Array and the multientry property in the optionalParameters is true, then a NON_TRANSIENT_ERR error must be thrown." http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBObjectStore-createIndex-IDBIndex-DOMString-name-DOMString-keyPath-Object-IDBIndexOptionalParameters

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