WebKit could benifit from a tool to observe/debug event dispatch bdash and I just spent a while talking about JS/Web tools that we'd like to see to better support web developers using Safari/WebKit. One idea which came out of this discussion was for a tool to track javascript event dispatch. I have had a number of cases where I've had to debug mouse-events for my web-application in Safari and been frustrated by having to resort to gdb to do this tracking. It would be nice if there were a way to easily see a log of all attempted dispatch, or to have information a priori as to where a mouse event might be captured/targeted. Wiring this sort of tool into WebKit should be relatively straightforward. A couple hooks into EventTargetNode::dispatchGenericEvent should do the trick. The larger question (to me) is what would such a tool look like.
<rdar://problem/5762056>
*** Bug 17430 has been marked as a duplicate of this bug. ***
The Timeline Panel helps with this, but usability on these types of use cases could probably still improve.
Not great, but the console has support for Firebug's monitorEvents(<element>, [<event type>, ...]).
The Timeline panel is the answer for this.