[Webkit-unassigned] [Bug 33861] New: Document is not noticed about event listener changes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 19 13:19:51 PST 2010


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

           Summary: Document is not noticed about event listener changes
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: XML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: zimmermann at kde.org
                CC: eric at webkit.org, mjs at apple.com, darin at apple.com,
                    staikos at kde.org


Document keeps track wheter a certain event listener is available in the DOM,
we only dispatch certain events if document()->hasListenerType(..) returns
true.
In Node::addEventListener, we're adding the listener type, but in
Node::removeEventListener we're not notifying the Document that something
changed.

We need to switch to a counting based tracking scheme, counting how many event
listeners are registered for each event type.
This bug can introduce performance problems, when adding a mutation event
listener once for ie. <body> and then removing it. We will never stop
dispatching mutation events.

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