[Webkit-unassigned] [Bug 113119] New: Tests for exceptions of type DOMException.TYPE_ERR in encrypted-media-syntax.html are broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 22 17:27:40 PDT 2013


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

           Summary: Tests for exceptions of type DOMException.TYPE_ERR in
                    encrypted-media-syntax.html are broken
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: steveblock at chromium.org
                CC: ddorwin at chromium.org


These tests were added in http://trac.webkit.org/changeset/113736 and check that the error's code attribute is set to DOMException.TYPE_ERR. However, I don't think they're doing what was intended.

In both JSC and V8, DOMException.TYPE_ERR is undefined. I think the correct name of the error is DOMException.TYPE_MISMATCH_ERR. 

The tests pass because neither JSC nor V8 set the error attribute when creating errors of this type. They do however set the attribute for other types of errors. I'm not sure whether or not this is a bug in the bindings, though I suspect not.

We should fix the test and perhaps the bindings too.

-- 
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