[Webkit-unassigned] [Bug 202713] New: Don't attempt to dispatch an event from the window if there are no listeners for it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 8 17:10:23 PDT 2019


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

            Bug ID: 202713
           Summary: Don't attempt to dispatch an event from the window if
                    there are no listeners for it
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: UI Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: drousso at apple.com

`EventTarget::fireEventListeners` will early return if there are no event listeners for the type of the event being dispatched.  This is not the case for `DOMWindow::dispatchEvent`, which always attempts to dispatch both the capturing and bubbling phase of the event regardless of whether there are any event listeners for the dispatched event's type.

-- 
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/20191009/187286ad/attachment.html>


More information about the webkit-unassigned mailing list