Bug 7795 - eventSender.mouseClick() cannot be used for sending double-click events
Summary: eventSender.mouseClick() cannot be used for sending double-click events
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P4 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 22:02 PST by Eric Seidel (no email)
Modified: 2007-03-31 05:14 PDT (History)
3 users (show)

See Also:


Attachments
Test case (must be run in DumpRenderTree) (1.09 KB, text/html)
2006-03-15 22:03 PST, Eric Seidel (no email)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2006-03-15 22:02:08 PST
eventSender.mouseClick() cannot be used for sending double-click events

I believe the events end up getting posted in the wrong order, since the code posts the mouseDown directly, yet adds the mouseUp to the event queue.  When I tried to make them both direct another test started hanging.  When I tried to make them both deffered, another test started failing.  I think we want them both direct anyway.

The attached test case (when run under DumpRenderTree) demonstrates the problem.
Comment 1 Eric Seidel (no email) 2006-03-15 22:03:49 PST
Created attachment 7105 [details]
Test case (must be run in DumpRenderTree)
Comment 2 Eric Seidel (no email) 2006-03-15 22:06:29 PST
I ran into this while fixing bug 7790.
Comment 3 mitz 2006-03-17 10:48:42 PST
mouseClick was designed as a solution for tests that need to click native widgets (see bug 7583). It doesn't work even for single-clicking anything but native widgets. Maybe it should be renamed to reflect its special purpose. Another option which I mentioned in bug 7583 is to add a code path for the normal case.
Comment 4 mitz 2007-03-31 05:14:49 PDT
mouseClick() was removed in <http://trac.webkit.org/projects/webkit/changeset/20407>.