[webkit-dev] Problems with the new NATIVE_TYPE_ERR

Darin Adler darin at apple.com
Tue Nov 13 09:38:58 PST 2012

Four months back we added NATIVE_TYPE_ERR for IndexedDB, as a way for the DOM code to raise JavaScript type error exceptions rather than DOM exceptions 
<http://trac.webkit.org/changeset/123112>. Yesterday we started using NATIVE_TYPE_ERR elsewhere in the DOM <http://trac.webkit.org/changeset/134345>.

Looking this over, I see some problems. I added comments to https://bugs.webkit.org/show_bug.cgi?id=91679 and https://bugs.webkit.org/show_bug.cgi?id=101604 describing the problems.

The new error code is not handled at all in bindings other than the JavaScript bindings. I also think the constant for it is not well named.

Using NATIVE_TYPE_ERR in its current state outside IndexedDB causes an immediate showstopper bug for Apple’s Mac version of WebKit and perhaps for others as well. We may want to roll back this recent change until we deal with that.

-- Darin

More information about the webkit-dev mailing list