Bug 62415 - IndexedDB: deleteObjectStore() name argument is required
Summary: IndexedDB: deleteObjectStore() name argument is required
Status: RESOLVED DUPLICATE of bug 63140
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 16:59 PDT by Mark Pilgrim (Google)
Modified: 2011-06-22 08:14 PDT (History)
3 users (show)

See Also:


Attachments
test case (1.95 KB, text/html)
2011-06-09 16:59 PDT, Mark Pilgrim (Google)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2011-06-09 16:59:19 PDT
Created attachment 96665 [details]
test case

http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBDatabase-deleteObjectStore-IDBRequest-DOMString-name states that the deleteObjectStore() method's name argument is required and can not be null. This test calls deleteObjectStore() without any arguments. To be clear about what's happening, I first createObjectStore('undefined') (note that is a string) and then deleteObjectStore() twice in a row.

Expected behavior: throw IDBDatabaseException.NON_TRANSIENT_ERR twice
Actual behavior: first delete does not throw, but deletes the object store named "undefined". Second delete throws a NOT_FOUND_ERR.

Test case attached.
Comment 1 Mark Pilgrim (Google) 2011-06-20 17:52:37 PDT
Oops. As per WebIDL, the expected behavior is to throw TypeError, not IDBDatabaseException.NON_TRANSIENT_ERR. We'll fix it in the IDL bindings.
Comment 2 Mark Pilgrim (Google) 2011-06-22 08:14:17 PDT
Consolidating several bugs.

*** This bug has been marked as a duplicate of bug 63140 ***