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.
Created attachment 7105 [details] Test case (must be run in DumpRenderTree)
I ran into this while fixing bug 7790.
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.
mouseClick() was removed in <http://trac.webkit.org/projects/webkit/changeset/20407>.