Bug 58599 - IndexedDB add() should fail adding to object store that uses out-of-line keys and has no key generator and the key parameter was not provided
Summary: IndexedDB add() should fail adding to object store that uses out-of-line keys...
Status: RESOLVED DUPLICATE of bug 58609
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 16:36 PDT by Mark Pilgrim (Google)
Modified: 2011-04-28 19:01 PDT (History)
4 users (show)

See Also:


Attachments
test case (1.69 KB, text/html)
2011-04-14 16:36 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 16:36:42 PDT
Original test: http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_key_requirements.html?force=1#92

Mozilla correctly throws a DATA_ERR in this case. WebKit does not throw. Mozilla's behavior is supported by spec text, specifically http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBObjectStore-add

"""If any of the following conditions are true, this method throws a DATA_ERR exception: ... The object store uses out-of-line keys and has no key generator and the key parameter was not provided."""
Comment 1 Mark Pilgrim (Google) 2011-04-14 16:36:59 PDT
Created attachment 89682 [details]
test case
Comment 2 Mark Pilgrim (Google) 2011-04-28 19:01:38 PDT
This will be fixed by the patch to bug 58609.

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