[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


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

            Bug ID: 200066
           Summary: Non-callable "handleEvent" property is silently
                    ignored
           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

Actual:
No errors reported in DevTools or `window.onerror`

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