[Webkit-unassigned] [Bug 22382] Middle click fires onclick event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 7 18:06:30 PDT 2010


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





--- Comment #14 from Adam Barth <abarth at webkit.org>  2010-05-07 18:06:28 PST ---
Here's one approach to a fix.  The patch probably needs some cleanup and
testing (of course).  The idea is that we move the previous check for "right
click" down a layer and add the middle click case.  The benefit of being at a
lower layer is that we can call the default handler directly, bypassing the
dispatch to the DOM-registered events.

One side-effect of this change, however, is that the ban might go into effect
for DOM-created events as well.  We need testing for that case as well.

I'm not sure I'll be able to drive this patch to completion in the near term,
so someone else who's interested might want to pick it up.  Here's a nice test
case to play with:

data:text/html,<button onclick="this.innerHTML='clicked'">click here</button>

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