[Webkit-unassigned] [Bug 102514] Remove IDBDatabaseException

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 16 11:21:14 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=102514





--- Comment #3 from Joshua Bell <jsbell at chromium.org>  2012-11-16 11:23:06 PST ---
There are a couple places where DOMError is used (IDBRequest.error) for asynchronous error reporting, but most synchronous error handling in the spec does just have methods throw DOMExceptions. 

There are IDB-specific exception types, which in WebIDL/DOM4/spec parlance are e.g. "throw a DOMException of type ConstraintError". Right now we use IDBDatabaseException.CONSTRAINT_ERR like all of the legacy modules do, and there are various layers of indirection that map that to a DOMException with code = CONSTRAINT_ERR and name = "ConstraintError", but it would be nice to simplify that. 

To align with the spec:
* we shouldn't be exposing the IDBDatabaseException interface 
* the codes should be 0 for IDB-specific exception types

We'd like to do the above in the next couple of weeks - the big time sink will be updating tests.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list