[Webkit-unassigned] [Bug 93322] New: Don't re-use the same EventDispatcher instance to dispatch events.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 6 19:12:55 PDT 2012


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

           Summary: Don't re-use the same EventDispatcher instance to
                    dispatch events.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Event Handling
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hayato at chromium.org
                CC: dglazkov at chromium.org, dominicc at chromium.org,
                    morrita at google.com, shinyak at chromium.org,
                    tasak at google.com
            Blocks: 91290


Three are some member functions in EventDispatcher, which assume the instance of EventDispatcher is used for only one event.

Example:
- EventDispatcher::ensureEventAncestor calculates ancestors of node. But once the calculation is done, it never recalculates. The result of the calculation depends on the given event's type().

So it is potentially dangerous to call EventDispatcher::dispatchEvent(Event) twice with different events against the same EventDispatcher instance.
We have to make sure the EventDspatcher instance is used only once per event. Currently dispatching 'dblclick' event violates this rule.

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