Bug 58468

Summary: IndexedDB createObjectStore should throw if name is empty string
Product: WebKit Reporter: Mark Pilgrim (Google) <pilgrim>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: dgrogan, fishd, hans, pilgrim
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
test case
none
patch + layouttest none

Description Mark Pilgrim (Google) 2011-04-13 12:12:24 PDT
Similar to bug 58465, but I'm opening a separate bug for this because I'm not sure if we're wrong. (The spec is unclear on this point, or if the spec is clear, I haven't found the right sentence to prove one way or the other.) Mozilla throws in this case, but WebKit does not, so someone is definitely wrong.
Comment 1 Mark Pilgrim (Google) 2011-04-13 12:12:59 PDT
Created attachment 89429 [details]
test case
Comment 2 Mark Pilgrim (Google) 2011-04-25 10:27:49 PDT
Spec says that several things can be the empty string, but this is not one of them. Compiling patch.
Comment 3 Mark Pilgrim (Google) 2011-04-25 10:32:07 PDT
Created attachment 90927 [details]
patch + layouttest
Comment 4 Mark Pilgrim (Google) 2011-04-26 10:42:02 PDT
Discussion with SickingJ leads to the conclusion that the spec will be changed to explicitly ALLOW name to be an empty string. Closing this bug.

http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0349.html