gecko-dev/browser/actors
Masayuki Nakano 96bd720118 Bug 1521396 - Make ClickHandlerChild prevent multiple action of middle click on link element for preventing middle click paste r=smaug
When user middle clicks a link, most users must not expect to expose clipboard
content to the web application.  Therefore, we should stop firing paste event
when user click a link with middle button.

This patch makes ClickHandlerChild.handleEvent() prevent multiple action
when it posts middle click event on a link.  Note that even if middle click
event is consumed, default event handler will dispatch paste event.
Unfortunately, this is compatible behavior with the other browsers.
Therefore, we cannot change this behavior with calling preventDefault() and
this is the reason why this patch adds Event.preventMultipleActions().

Out of scope of this bug though, if there is an element which looks like a
link but implemented with JS, web apps can steal clipboard content if user
enables middle click event and user just wants to open the link in new tab.
It might be better to stop dispatching paste event in any browsers and request
to change each web apps.

Differential Revision: https://phabricator.services.mozilla.com/D17209

--HG--
extra : moz-landing-system : lando
2019-01-22 07:28:55 +00:00
..
AboutReaderChild.jsm
BlockedSiteChild.jsm
BrowserTabChild.jsm
ClickHandlerChild.jsm Bug 1521396 - Make ClickHandlerChild prevent multiple action of middle click on link element for preventing middle click paste r=smaug 2019-01-22 07:28:55 +00:00
ContentSearchChild.jsm
ContextMenuChild.jsm Bug 1365542 - Use HTML5 FormData object rather than hand-rolling form data for search keyword handling r=Gijs 2018-12-18 23:44:15 +00:00
DOMFullscreenChild.jsm
FormSubmitChild.jsm
LightWeightThemeInstallChild.jsm
LightweightThemeChild.jsm
LinkHandlerChild.jsm
NetErrorChild.jsm Bug 1414804 - Fix test for expired certificate "helpful" messaging to users with broken system clocks. r=Gijs 2019-01-09 17:23:18 +00:00
OfflineAppsChild.jsm
PageInfoChild.jsm
PageStyleChild.jsm
PluginChild.jsm Bug 1497940 - Part V, Convert pluginProblem to UA Widget r=smaug 2018-11-22 05:49:54 +00:00
SearchTelemetryChild.jsm Bug 1505411 - Add basic monitoring for partner search pages with ads and clicks. Depends on D11188 r=adw,Felipe,chutten 2018-12-05 20:33:01 +00:00
URIFixupChild.jsm
WebRTCChild.jsm
moz.build Bug 1503674 - Remove unused PageMetadata. r=Gijs 2018-12-17 09:33:12 +00:00