Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
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
.cargo Bug 1504507 - Update serde branch for changes in WR PR #3264. r=kats 2018-11-05 13:14:07 +00:00
.vscode Bug 1514820 - Recommend a VSCode extension for IDL language highlighting r=jya 2018-12-18 19:43:33 +00:00
accessible Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-21 20:01:06 +02:00
browser 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
build Bug 1521284 - Don't hardcode config.log path in old-configure. r=nalexander 2019-01-21 17:32:11 +00:00
caps Bug 1518991 - Make nsIPrincipal URI getter infallible; r=bholley 2019-01-10 05:44:33 +00:00
chrome Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
config Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
db Bug 1270882 - Enable support for SQLite custom FTS3 tokenizers at run time. r=mak 2018-11-29 23:02:10 +00:00
devtools Bug 1519104 - Create a preference for webconsole editor;r=Honza. 2019-01-22 06:45:50 +00:00
docshell Bug 1521137 - The pres context's base min font size is dead code. r=heycam 2019-01-21 07:15:02 +00:00
dom 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
editor Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh 2019-01-21 09:58:50 -05:00
embedding Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
extensions Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
gfx Bug 1521420 - Skip some redundant work during picture caching updates. r=jrmuizel 2019-01-22 02:10:01 +00:00
gradle/wrapper Bug 1509572 - Part 1: Bump Gradle wrapper to 4.10.2; decouple script from Gradle version. r=snorp 2018-11-26 21:42:27 +00:00
hal Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
image Backed out changeset 9fedba33cfa3 (bug 1514396) for causing regression Bug 1521239, requested by jkt. CLOSED TREE 2019-01-21 14:21:30 +02:00
intl Bug 1521279 - Update Fluent migration documentation to include whitespaces trimming and parameter normalization r=Pike 2019-01-21 15:00:00 +00:00
ipc Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
js Merge mozilla-inbound to mozilla-central a=merge 2019-01-21 19:50:56 +02:00
layout Bug 1521137 - The pres context's base min font size is dead code. r=heycam 2019-01-21 07:15:02 +00:00
media Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-21 20:01:06 +02:00
memory Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
mfbt Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
mobile Merge mozilla-inbound to mozilla-central. a=merge 2019-01-22 05:56:10 +02:00
modules Bug 1521334, make parser to flush its tree operation queue sooner, r=hsivonen 2019-01-21 16:03:03 +02:00
mozglue Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
netwerk Merge mozilla-inbound to mozilla-central. a=merge 2019-01-22 05:56:10 +02:00
nsprpub Bug 1477680, NSPR 4.20 RTM, no code change, only version number, r=me 2018-08-28 16:21:01 +02:00
other-licenses Backed out 6 changesets (bug 1514806) for causing windows 2012 opt repack bustages. 2019-01-15 19:17:09 +02:00
parser Bug 1512749 - Convert JS::gcreason::Reason to enum class JS:GCReason r=jonco r=mccr8 2019-01-21 13:09:12 +00:00
python Bug 1517529 - Migrate safeMode dialog to Fluent for localization, r=Gijs,flod 2019-01-21 21:51:10 +00:00
security Merge mozilla-inbound to mozilla-central. a=merge 2019-01-22 05:56:10 +02:00
services Bug 1518300 - Refactor CryptoUtils and add JWK/JWE methods to jwcrypto. r=rfkelly,tjr 2019-01-18 20:58:42 +00:00
servo Bug 1521652 - Run rustfmt on servo/ports/geckolib/. r=emilio 2019-01-22 01:59:21 +00:00
startupcache Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
storage Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
taskcluster No bug: [taskgraph] Simplify one of the docker tests; r=dustin 2019-01-18 20:08:06 +00:00
testing Merge mozilla-inbound to mozilla-central. a=merge 2019-01-22 05:56:10 +02:00
third_party Bug 1520174 - Update dav1d from upstream to f813285. r=TD-Linux 2019-01-16 00:05:25 +00:00
toolkit Merge mozilla-central to autoland. 2019-01-22 05:59:58 +02:00
tools Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-01-21 14:49:22 +00:00
uriloader Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh 2019-01-21 09:58:50 -05:00
view Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
widget Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-01-21 14:49:22 +00:00
xpcom Merge mozilla-inbound to mozilla-central a=merge 2019-01-21 19:50:56 +02:00
xpfe/appshell Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh 2019-01-21 09:58:50 -05:00
.arcconfig Bug 1460463 - Update .arcconfig to make history mutable; r=gps 2018-05-09 23:49:52 +00:00
.clang-format Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
.clang-format-ignore Bug 1518968 - Make third_party/* be considered as third-party directories; r=glandium 2019-01-10 18:09:41 +00:00
.cron.yml Bug 1514087: [taskgraph] Add an option to not optimize target tasks in cron graphs; r=dustin 2018-12-26 14:43:34 +00:00
.eslintignore Bug 1508984 - Enable ESLint for dom/tests/unit/ and dom/system (manual changes) r=Standard8,Ehsan 2019-01-18 18:56:46 +00:00
.eslintrc.js Bug 1515942 - Enable ESLint for gfx/ (manual fixes). r=kats 2018-12-27 09:45:01 +00:00
.flake8 Bug 1519307 - Add a new project to build useful parts of breakpad independently. r=froydnj 2019-01-11 16:01:15 +00:00
.gdbinit Bug 1486903 - Add "ftl" command to dump frame subtree to .gdbinit. r=Ehsan 2018-08-28 20:20:21 +00:00
.gdbinit_python
.git-blame-ignore-revs Merge mozilla-inbound to mozilla-central. a=merge 2019-01-22 05:56:10 +02:00
.gitignore Bug 1513450 - Do not ignore .rej/.orig files. r=firefox-build-system-reviewers,nalexander 2018-12-17 21:41:01 +00:00
.hg-annotate-ignore-revs Bug 1508324 - Generate list of past changesets to be skipped for blame. r=me NPOTB DONTBUILD 2018-12-27 18:08:25 -02:00
.hg-format-source Bug 1511181 - Quick fix for .hg-format-source that has an empty line. r=ehsan, a=aryx 2018-11-30 13:25:44 +02:00
.hgignore Bug 1513450 - Do not ignore .rej/.orig files. r=firefox-build-system-reviewers,nalexander 2018-12-17 21:41:01 +00:00
.hgtags No bug - Tagging mozilla-central 254bd88c107271f3d1c2ca9969acc0ed507f0a8d with FIREFOX_BETA_66_BASE a=release DONTBUILD CLOSED TREE 2019-01-21 04:50:01 -08:00
.lldbinit Bug 1481555: Use lldb's python API to summarise nsAtoms. r=froydnj 2018-08-08 15:11:22 +00:00
.mailmap
.taskcluster.yml Backed out changeset aee9f213f3c7 (bug 1496890) for causing Bug 1521264. a=backout 2019-01-19 11:22:32 +02:00
.trackerignore Bug 1486468 - Add .trackerignore file to avoid GNOME Tracker indexing mozilla-central files. r=ahal 2018-08-27 16:45:03 +02:00
.yamllint
.ycm_extra_conf.py
aclocal.m4 Bug 1519603 - Manually inline AC_OUTPUT_SUBDIRS and MOZ_RUN_ALL_SUBCONFIGURES. r=nalexander 2019-01-14 18:37:06 +00:00
AUTHORS Bug 1481409 - Use HTTPS protocol for Mozilla's Credits link in AUTHORS file r=mossop 2018-08-13 16:39:30 +00:00
build.gradle Bug 1506658 - Add @Nullable or @NonNull to all APIs. r=snorp,rbarker,geckoview-reviewers 2018-12-20 15:22:45 +00:00
Cargo.lock Bug 1521518 - Update crate versions for changes in WR PR #3514. r=kats 2019-01-21 15:12:54 +00:00
Cargo.toml Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel 2018-11-22 21:47:48 +00:00
client.mk Bug 1498031 - Merge code paths for running configure between Tup and Make based backends. r=firefox-build-system-reviewers,mshal 2018-10-16 22:21:36 +00:00
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-12-10 07:58:12 -08:00
configure.in
configure.py Bug 1520394 - Don't invoke js subconfigure as a separate process. r=nalexander 2019-01-16 23:42:12 +00:00
GNUmakefile
gradle.properties
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1507334 - Remove '10' argument to profileserver.py; r=firefox-build-system-reviewers,chmanchester#firefox-build-system-reviewers 2019-01-10 01:34:39 +00:00
moz.build Bug 1507334 - Add mozconfigs for 3-stage PGO; r=firefox-build-system-reviewers,chmanchester#firefox-build-system-reviewers 2019-01-10 01:34:49 +00:00
moz.configure Bug 1520340 - Move subconfigure invocation from old-configure to python configure. r=froydnj 2019-01-16 23:12:20 +00:00
mozilla-config.h.in Bug 1504022 - Map GetExceptionCode to a nop to avoid an error r=bobowen 2018-11-02 13:28:01 -05:00
old-configure.in Bug 1521284 - Don't hardcode config.log path in old-configure. r=nalexander 2019-01-21 17:32:11 +00:00
package-lock.json Bug 1517707. Update ESLint related modules to latest versions. r=mossop 2019-01-04 16:44:49 +00:00
package.json Bug 1517707. Update ESLint related modules to latest versions. r=mossop 2019-01-04 16:44:49 +00:00
README.txt Bug 1480997 - Remove "Mozilla FTP server" link in README.txt r=mossop 2018-10-23 10:06:29 +00:00
settings.gradle
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.