[Webkit-unassigned] [Bug 46733] REGRESSION (r67261): Middle-mouse-release opens links regardless of "press" location

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 30 11:03:19 PDT 2010


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





--- Comment #13 from Peter Kasting <pkasting at google.com>  2010-09-30 11:03:19 PST ---
(In reply to comment #12)
> I would, however, like middle-mouse events to have the same level of control as left-mouse events.  Specifically, just as preventDefault() can interrupt the native handler for an onLeftClick, it should be able to block the native handling of an onMiddleClick.

There is no click event to preventDefault() on.  Re-adding one breaks numerous sites across the web (as we know from years of having it).

> It's easier make accurate predictions and expectations of the browser when there are fewer special cases (for instance, when the middle-click API behaves just like the left-click API).

That ship has sailed (sadly).  Regardless of what would logically make sense, "click" is a de facto euphemism for "left click".  If we want more programmatic control of middle-clicks, we need to invent a new event for them.

> Also, extension authors often provide custom functionality in response to middle-clicks, and mouseEvent.preventDefault() is an important tool to that end.

I am much more concerned about compatibility across the web than convenience for extension authors when the two conflict with each other.  But as I noted, it might be possible to invent a new, dedicated event for middle clicks, which would re-add this ability without the web compat headaches.  Perhaps you would like to raise the issue with the DOM folks?

> This sounds like it's more than just a quick fix.  Any chance that the r67261 patch can be rolled-back and reapplied when it includes a fix for this issue?

I have to find someone to fix this soon since it's a blocker for Chrome 7, which has passed feature freeze a while back.

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