WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
63079
IndexedDB: should throw TypeError when index .get() key argument is missing
https://bugs.webkit.org/show_bug.cgi?id=63079
Summary
IndexedDB: should throw TypeError when index .get() key argument is missing
Mark Pilgrim (Google)
Reported
2011-06-21 11:11:05 PDT
http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBIndex-get-IDBRequest-any-key
states that the key argument of IDBIndex.get() method is required. As per WebIDL, missing required arguments now throw TypeError. This also applies to the IDBIndex.getKey() method as well. Attached test case calls .get() and .getKey() with no arguments. Expected behavior: throw TypeError Actual behavior: does not throw Patch included.
Attachments
Patch
(5.46 KB, patch)
2011-06-21 11:13 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
patch with nits
(5.47 KB, patch)
2011-06-21 11:35 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mark Pilgrim (Google)
Comment 1
2011-06-21 11:13:57 PDT
Created
attachment 98014
[details]
Patch
David Grogan
Comment 2
2011-06-21 11:25:54 PDT
Comment on
attachment 98014
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=98014&action=review
Other than minor comment below, LGTM
> LayoutTests/storage/indexeddb/index-get-key-argument-required.html:14 > +description("Test IndexedDB undefined as record value");
Forgot to update this.
Mark Pilgrim (Google)
Comment 3
2011-06-21 11:35:28 PDT
Created
attachment 98024
[details]
patch with nits
WebKit Review Bot
Comment 4
2011-06-21 13:57:47 PDT
Comment on
attachment 98024
[details]
patch with nits Clearing flags on attachment: 98024 Committed
r89377
: <
http://trac.webkit.org/changeset/89377
>
WebKit Review Bot
Comment 5
2011-06-21 13:57:52 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug