[Webkit-unassigned] [Bug 101620] New: WebIDL: Incorrect type conversion for interface types

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 8 10:08:16 PST 2012


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

           Summary: WebIDL: Incorrect type conversion for interface types
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://www.w3.org/TR/WebIDL/#es-interface
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arv at chromium.org
                CC: abarth at webkit.org, jsbell at chromium.org,
                    haraken at chromium.org


If the operation argument is of type T, where T is an interface type (ie Node) we should throw a TypeError if the value is not a T. Currently we always convert this to null leading us to pass null into the webcore function.

DOM spec:

Node insertBefore(Node node, Node? child);

WebKit IDL:

If we call insertBefore(someNode, 42) we fail to convert 42 to a Node so we treat it as null which is not correct.

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