WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
63114
IndexedDB createIndex should NOT throw if name arg is null
https://bugs.webkit.org/show_bug.cgi?id=63114
Summary
IndexedDB createIndex should NOT throw if name arg is null
Mark Pilgrim (Google)
Reported
2011-06-21 20:25:10 PDT
Calling objectStore.createIndex(null, null) should behave identically to calling createIndex("null", "null"). I have double-checked this (highly unintuitive) behavior with the author of the WebIDL spec and he confirms it (
http://krijnhoetmer.nl/irc-logs/whatwg/20110622#l-187
). There was also apparently a WebIDL spec bug recently asking to change this behavior, but it was WONTFIXED (
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12798
). End result: null values for DOMString arguments get stringified to the four-character string "null". This affects several functions in WebKit's IndexedDB implementation. I am filing separate bugs for each of them. (See also
bug 63110
, for instance.) Patch attached.
Attachments
Patch
(3.72 KB, patch)
2011-06-21 20:26 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Pilgrim (Google)
Comment 1
2011-06-21 20:26:56 PDT
Created
attachment 98111
[details]
Patch
WebKit Review Bot
Comment 2
2011-06-22 14:23:28 PDT
Comment on
attachment 98111
[details]
Patch Clearing flags on attachment: 98111 Committed
r89479
: <
http://trac.webkit.org/changeset/89479
>
WebKit Review Bot
Comment 3
2011-06-22 14:23:33 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