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 246163150b Bug 1528289 - part 1: Move selection at middle button down rather than middle button up r=edgar
Chrome and Safari move selection at middle button down and does not modify the
range at middle button up.  However, they handle middle button down with
`Shift` key is "continue selection".  So, we should handle selection in
nsIFrame when `mousedown` event for middle mouse button is fired, but ignore
multiple selection, drag and drop and maintaining selection for aligning the
behavior to the other browsers.

This patch splits `nsIFrame::HandlePress()` and calls new method which
moves selection from `nsIFrame::HandleEvent()` when middle button is pressed.
(Note that this patch does not check whether middle click paste is enabled
because Chrome moves selection even on Windows which Chrome always disable
middle click paste on.)

With this change, "paste" event target is changed.  Previously, we used target
of the preceding `mouseup` event, but we start to use the target of the
preceding `mousedown` event.

Note that even with this patch, we still behave differently from Chrome even
in the following cases:
- middle mouse button down in selected range, we collapse it, but Chrome keeps
  the selection.
- middle mouse button click in selected range, we dispatch "paste" event, but
  Chrome collapse selection and not dispatch "paste" event.
- middle mouse button down in selected range and up in different element,
  Chrome does not modify the range nor dispatch "paste" event.
- Shift + middle mouse button in editable `<table>` works as non-editable
  in Chrome, but our editor handles it with special path.  Therefore, we
  don't modify the range but dispatch "paste" event in the selected range.

Changing them requires bigger change and probably requires some other features'
behavior changes.  Therefore, we shouldn't touch these issues until they are
actually reported as web-compat issues.

Differential Revision: https://phabricator.services.mozilla.com/D103997
2021-03-01 22:57:06 +00:00
.cargo Bug 1695464 - Update mp4parse-rust to ccbe4eb. r=bryce,kinetik 2021-03-01 21:23:35 +00:00
.vscode
accessible Bug 1420773 - Only return HTML captions as HTML table captions. r=morgan 2021-03-01 18:06:11 +00:00
browser Bug 1695666 - To reduce urlbar view flicker, don't reuse rows with different suggested indexes. r=harry 2021-03-01 22:31:45 +00:00
build Bug 1688062 - Update target SDK to API 30. r=esawin,jnicol 2021-03-01 19:12:16 +00:00
caps Bug 1686616 - make StringBundle use Components instead of Services. r=kmag 2021-02-18 13:26:32 +00:00
chrome Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika 2021-02-26 09:11:46 +00:00
config Bug 1694575 - Don't include mozalloc.h from the iosfwd wrapper. r=andi 2021-02-28 17:47:27 +00:00
devtools Bug 1695744 - [devtools] Use a DescriptorMixin in order to share a common interface between all descriptor fronts. r=jdescottes 2021-03-01 20:00:56 +00:00
docs Bug 1693140 - Fix the mermaid rendering issue and remove post processing script.r=sylvestre DONTBUILD 2021-02-19 08:45:10 +00:00
docshell Bug 1691913 - Add some convenience methods to LookupResult and EntryHandle. r=xpcom-reviewers,nika 2021-03-01 09:59:29 +00:00
dom Bug 1528289 - part 1: Move selection at middle button down rather than middle button up r=edgar 2021-03-01 22:57:06 +00:00
editor Bug 1675779 - Update browserscope for contenteditable=false case. r=masayuki 2021-02-22 10:18:49 +00:00
extensions Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika 2021-02-26 09:11:46 +00:00
gfx Bug 1682713 - Recreate the CVDisplayLink after display reconfigurations. r=mattwoodrow 2021-03-01 20:56:25 +00:00
gradle/wrapper
hal Bug 1691913 - Add some convenience methods to LookupResult and EntryHandle. r=xpcom-reviewers,nika 2021-03-01 09:59:29 +00:00
image Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika 2021-02-26 09:11:46 +00:00
intl Bug 1691913 - Remove uses of nsDataHashtable::GetValue. r=xpcom-reviewers,necko-reviewers,dragana,nika 2021-03-01 09:59:30 +00:00
ipc Bug 1658419 - Change PGamepadEventChannelParent to have a constructor r=handyman 2021-03-01 21:59:48 +00:00
js Bug 1689403 - Support envChainObject in combination with loadBytecode in shell evaluate builtin r=arai 2021-03-01 22:43:28 +00:00
layout Bug 1528289 - part 1: Move selection at middle button down rather than middle button up r=edgar 2021-03-01 22:57:06 +00:00
media Bug 1688992 - Update libdav1d to 0.8.2 for Firefox 88. r=dminor 2021-02-24 23:05:38 +00:00
memory Bug 1695331 - Disable memory/replace/logalloc/replay in ccov fuzzing builds. r=calixte DONTBUILD 2021-03-01 15:41:15 +00:00
mfbt Backed out 5 changesets (bug 1690167) for failing xpcshell at bootstrapSvc.js on a CLOSED TREE 2021-02-17 07:10:58 +02:00
mobile Bug 1643736 - Adding appropriate check before passing cookieStoreId to GeckoViewTabBridge.createNewTab() r=robwu,agi 2021-03-01 20:49:07 +00:00
modules Bug 1695560 - Narrow down the zero_byte_load probe r=zbraniecki 2021-03-01 20:45:33 +00:00
mozglue Bug 1692908 - Block AVerMedia's virtual camera module. r=gcp 2021-02-26 22:06:19 +00:00
netwerk Bug 1693541 - Improve uses of nsBaseHashtable and descendants and avoid multiple subsequent lookups in netwerk. r=necko-reviewers,valentin 2021-03-01 16:41:20 +00:00
nsprpub Bug 1694371 - NSPR_4_30_BETA1. r=bbeurdouche UPGRADE_NSPR_RELEASE 2021-03-01 16:24:51 +00:00
other-licenses Bug 1692893 - Minimal patch: Workaround atk extern "C" issue. r=Jamie 2021-02-16 00:40:33 +00:00
parser Bug 1691913 - Remove uses of nsDataHashtable::GetValue. r=xpcom-reviewers,necko-reviewers,dragana,nika 2021-03-01 09:59:30 +00:00
python Bug 1688062 - Update target SDK to API 30. r=esawin,jnicol 2021-03-01 19:12:16 +00:00
remote Bug 1601618 - [remote] Use lazy loading of modules and delayed setting of global properties. r=remote-protocol-reviewers,jdescottes 2021-02-26 15:37:41 +00:00
security No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM 2021-02-27 00:22:47 +00:00
services Bug 1694217 - manually run all remote-settings dumps through jq. r=RyanVM 2021-03-01 16:15:30 +00:00
servo Bug 1695369 - Simplify StyleColor representation. r=jwatt 2021-03-01 16:05:14 +00:00
startupcache Bug 1688511 - do not use 'else' after 'return'. r=sylvestre 2021-02-04 09:24:19 +00:00
storage Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika 2021-02-26 09:11:46 +00:00
taskcluster Backed out changeset f7fa859944a3 (bug 1694172) for causing talos crashes CLOSED TREE 2021-03-02 02:18:41 +02:00
testing Bug 1528289 - part 1: Move selection at middle button down rather than middle button up r=edgar 2021-03-01 22:57:06 +00:00
third_party Bug 1695464 - Update mp4parse-rust to ccbe4eb. r=bryce,kinetik 2021-03-01 21:23:35 +00:00
toolkit Bug 1695464 - Update mp4parse-rust to ccbe4eb. r=bryce,kinetik 2021-03-01 21:23:35 +00:00
tools Bug 1691763 - Add identifier length check for Fluent linter; r=gregtatum,fluent-reviewers,flod 2021-03-01 16:18:26 +00:00
uriloader Bug 1693541 - Improve uses of nsBaseHashtable and descendants and avoid multiple subsequent lookups in uriloader. r=Gijs 2021-02-26 11:36:40 +00:00
view Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian 2021-02-16 04:44:19 +00:00
widget Bug 1695741 - Choose more round points for windows scroll button arrows. r=mstange 2021-03-01 22:55:37 +00:00
xpcom Bug 1693541 - Improve uses of nsBaseHashtable and descendants and avoid multiple subsequent lookups in xpcom. r=xpcom-reviewers,nika 2021-03-01 09:59:33 +00:00
xpfe/appshell Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian 2021-02-16 04:44:19 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore Bug 1686831 - Import glibc printf test cases verbatim. r=mhoye 2021-01-28 09:48:53 +00:00
.cron.yml
.eslintignore Bug 1690475 - [remote] Reorganize xpcshell and browser chrome tests. r=remote-protocol-reviewers,jdescottes 2021-02-23 17:37:03 +00:00
.eslintrc.js Bug 1686526, hide sidebar button in proton toolbar r=mstriemer 2021-02-24 20:00:15 +00:00
.flake8 Bug 1622681 - Remove dom/encoding from flake8 excludes. r=sylvestre DONTBUILD 2021-01-21 20:50:40 +00:00
.git-blame-ignore-revs
.gitattributes
.gitignore
.hg-annotate-ignore-revs
.hg-format-source
.hgignore
.hgtags No bug - tagging 396d6048aec7d8118bf31637be4a3f5aa06d74ee with FIREFOX_NIGHTLY_87_END a=release DONTBUILD CLOSED TREE 2021-02-22 12:50:38 +00:00
.lldbinit
.mailmap
.prettierignore Bug 1667276 - Part 3: Load a custom prefs file when running a background task. r=mossop,KrisWright 2021-01-27 22:54:25 +00:00
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle
Cargo.lock Bug 1695464 - Update mp4parse-rust to ccbe4eb. r=bryce,kinetik 2021-03-01 21:23:35 +00:00
Cargo.toml Bug 1693270 - Switch audioipc-2 to vendored code - remove old linting paths. a=lint-fix 2021-02-17 20:40:57 +00:00
client.mk Backed out changeset b3654ee48ff4 (bug 1683797) for causing frequent build timeouts as bug 1411358. CLOSED TREE 2021-01-29 19:30:59 +02:00
client.py
CLOBBER
configure.in
configure.py
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LICENSE
mach Bug 1638960 - Run 'mach firefox-ui-functional' with Python 3. r=jgraham 2021-02-13 20:26:14 +00:00
mach.ps1 Bug 1686256 - Add Windows friendly wrapper for mach r=mhentges,firefox-build-system-reviewers,dmajor 2021-01-20 02:08:40 +00:00
Makefile.in
moz.build Bug 1687640 - Cover mach.ps1 in moz.build r=dmajor,firefox-build-system-reviewers 2021-01-20 15:20:27 +00:00
moz.configure Bug 1693725 - Make --enable-bootstrap install missing toolchains. r=firefox-build-system-reviewers,andi,sheehan,mhentges 2021-02-24 02:13:10 +00:00
mozilla-config.h.in
old-configure.in
package-lock.json
package.json
README.txt
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

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

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


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 Firefox developers for
testing, may be buggy.