[Webkit-unassigned] [Bug 200066] New: Non-callable "handleEvent" property is silently ignored

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 23 17:29:18 PDT 2019


            Bug ID: 200066
           Summary: Non-callable "handleEvent" property is silently
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Test case:
let et = document.createElement("div")
et.addEventListener("foo", {handleEvent: "str"})
et.dispatchEvent(new Event("foo")) // => true

No errors reported in DevTools or `window.onerror`

TypeError should be reported

WPT: https://github.com/web-platform-tests/wpt/pull/15105
WebIDL: https://heycam.github.io/webidl/#call-a-user-objects-operation (step 10.4)

Firefox 68 reports TypeError, Chrome 75 doesn't.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190724/509bc338/attachment-0001.html>

More information about the webkit-unassigned mailing list