Bug 60022 was wrong, and Mozilla's implementation was wrong. Calling indexedDB.open(null) should behave identically to calling indexedDB.open("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 will file separate bugs for each of them. Patch attached.
Created attachment 98099 [details] Patch
Comment on attachment 98099 [details] Patch LGTM but could you add abarth to the reviewers since he seems to really know this stuff. Unless Tony also feels confident about it.
Comment on attachment 98099 [details] Patch Clearing flags on attachment: 98099 Committed r89506: <http://trac.webkit.org/changeset/89506>
All reviewed patches have been landed. Closing bug.