Bug 58611 - IndexedDB add() should fail if second (key) parameter is null
Summary: IndexedDB add() should fail if second (key) parameter is null
Status: RESOLVED DUPLICATE of bug 58613
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-14 17:30 PDT by Mark Pilgrim (Google)
Modified: 2011-04-28 19:00 PDT (History)
4 users (show)

See Also:


Attachments
test case (1.66 KB, text/html)
2011-04-14 17:30 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-04-14 17:30:14 PDT
http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBObjectStore-add says the second (key) parameter is optional when calling add(), but if specified it must not be null. Mozilla correctly throws a DATA_ERR (test: http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_key_requirements.html?force=1#196 ) but WebKit does not throw.
Comment 1 Mark Pilgrim (Google) 2011-04-14 17:30:42 PDT
Created attachment 89698 [details]
test case
Comment 2 Mark Pilgrim (Google) 2011-04-28 19:00:45 PDT
This is fixed by the patch to bug 58613.

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