Primary eng (and PM) emails
nzol...@chromium.org, dtap...@chromium.org
Summary
Remove dispatching the click and dblclick event to js for non-primary mouse buttons.
Motivation
It’s been some time since the spec (https://w3c.github.io/uievents/#event-type-click) was updated to make the click event a primary button event only. This was discussed in 2013 https://lists.w3.org/Archives/Public/www-dom/2013JulSep/0256.html and the desired behaviour was specified but no change was landed for Chromium.
Comments
Since a question was asked on blink-dev here; the specified behaviour removes non-primary button click event dispatched to js regardless of the target.
Compatibility Risk
FireFox does not dispatch click event for non-primary buttons.
Edge does still dispatch click event for middle button.
This action practically hides any action that was done in js as the result of listening to click event of non primary buttons (specially middle click). Particularly the functionality of preventDefault on click event for middle click on link which prevents opening a new tab is no longer possible.
OWP launch tracking bug
Requesting approval to remove too?
Yes, M52 is the suggested milestone. (This change prematurely got in and we are ready to revert it back if there was any objection)
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
You forgot to mention that WebKit apparently behaves as old-Blink.Have you tried reaching out to them? Can the Blink patch be easily ported to WebKit (that might help them get it prioritized)?
I think the risk should be measured somehow. How many pages have click events fired for non primary buttons?Since you will be concealing functionality as a result of this change, this may have some usability effects.
The fact that Edge implemented it (but not Internet Explorer) tends to show it was needed (or maybe it simply made more sense to the Edge engineers all of a sudden). I realize Jacob itself filed an issue for Edge. If all of the browsers aligned on this at around the same time (Safari has somewhat more frequent releases nowadays), it would be a safer change to make.
LGTM2:DG<On Thu, Apr 28, 2016 at 8:57 AM, Chris Harrelson <chri...@chromium.org> wrote:LGTM1On Thu, Apr 28, 2016 at 8:29 AM Navid Zolghadr <nzol...@chromium.org> wrote:Primary eng (and PM) emails
nzol...@chromium.org, dtap...@chromium.org
Summary
Remove dispatching the click and dblclick event to js for non-primary mouse buttons.
Motivation
It’s been some time since the spec (https://w3c.github.io/uievents/#event-type-click) was updated to make the click event a primary button event only. This was discussed in 2013 https://lists.w3.org/Archives/Public/www-dom/2013JulSep/0256.html and the desired behaviour was specified but no change was landed for Chromium.
Comments
Since a question was asked on blink-dev here; the specified behaviour removes non-primary button click event dispatched to js regardless of the target.
Compatibility Risk
FireFox does not dispatch click event for non-primary buttons.
Edge does still dispatch click event for middle button.
This action practically hides any action that was done in js as the result of listening to click event of non primary buttons (specially middle click). Particularly the functionality of preventDefault on click event for middle click on link which prevents opening a new tab is no longer possible.
OWP launch tracking bug
On Thu, Apr 28, 2016 at 2:19 PM, PhistucK <phis...@gmail.com> wrote:You forgot to mention that WebKit apparently behaves as old-Blink.Have you tried reaching out to them? Can the Blink patch be easily ported to WebKit (that might help them get it prioritized)?Filing a bug on WebKit is a good idea. Though I suspect they're unlikely to move until we've successfully shipped and shown that there isn't compat impact in practice.
This action practically hides any action that was done in js as the result of listening to click event of non primary buttons (specially middle click). Particularly the functionality of preventDefault on click event for middle click on link which prevents opening a new tab is no longer possible.
OWP launch tracking bug
I've changed this to an OWP tracking bug so people looking for removals in M52 will find it. Can you also please file a chromestatus.com entry? I think it's possible some developer somewhere will want to know about this, so we should ensure this is visible (and makes it into the M52 blog post, etc.).
Hey Olli, can you help us understand the motivation for Gecko's click event behavior on the document for middle button? We're trying to finally be spec compliant on middle-click behavior, but a little nervous about compat.