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
Перейти к файлу
Timothy Nikkel c21d494430 Bug 1697756. Restructure dmanip code so it's not possible to hit MOZ_ASSERT(updateLastScale) in DManipEventHandler::OnContentUpdated. r=botond
I'm not sure if the weird dmanip behaviour coming from the OS is new (because we have a new bug (bug 1697091) that seems like dmanip has changed what it sends us sometimes), or has always existed. But it seems like a good idea to make the code robust against this.

We can hit this assert in the following way. It seems as though dmanip decides after the first few OnContentUpdate calls if it is processing a pinch or a pan (because we can get a scale that is slightly different from 1 on the first OnContentUpdated call, but after that point never changes at all while the offset is changing fluidly) and if it decides it is a pan then it locks the scale to whatever it's last value was. So if we get a scale that is very close to 1 but not fuzzy equal to 1 on the first OnContentUpdated call we will decide that we are processing a pinch, but dmanip can then decide that it's processing a pan. Once the user lifts their finger dmanip will inform us via OnViewportStatusChanged that it is now in inertia mode, it is allowed to go into inertia for pans but not pinches because we pass DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_INERTIA but not DIRECTMANIPULATION_CONFIGURATION_SCALING_INERTIA when we create dmanip here https://searchfox.org/mozilla-central/rev/87a8afd9f57ee4bc542ba0ec3f96a891042b6db7/widget/windows/DirectManipulationOwner.cpp#554 And then dmanip can go straight from inertia to running, this causes us to start a new pinch because our current scale is not fuzzy equal to 1. But also, the current scale has not changed, so it is equal to our last scale, so we have no scale change to send in the pinch start event.

An example of logging when it happens is helpful for understanding and can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=1697756#c2

Differential Revision: https://phabricator.services.mozilla.com/D107994
2021-03-13 01:11:30 +00:00
.cargo Bug 1696780 - Update mp4parse-rust to 94c3b1f. r=bryce,kinetik 2021-03-09 21:36:31 +00:00
.vscode Bug 1685030 - Remove `rust` from `vscode` extensions list. r=sylvestre DONTBUILD 2021-01-05 17:28:05 +00:00
accessible Bug 1695162 - Migrate from custom hashtable iteration to range-based for in accessible, dom/animation, dom/base, dom/localstorage, gfx/thebes. r=nika 2021-03-12 16:14:58 +00:00
browser Backed out changeset 3d812f02347c (bug 1698058) for causing OS X build bustages. CLOSED TREE 2021-03-13 03:18:51 +02:00
build Bug 1662652 - New non-standard move checker. r=andi 2021-03-12 08:15:32 +00:00
caps Bug 1684001 - IsURIInPrefList should be infallible. r=masayuki 2021-03-08 23:36:40 +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 1689597 - Add Fuzzilli support to the build system. r=glandium 2021-03-11 12:13:21 +00:00
devtools Bug 1212958 - Unified splitter colors throughout DevTools. r=victoria 2021-03-12 21:23:51 +00:00
docs Bug 1691739 - [perfdocs] Display each test description for raptor r=sparky,perftest-reviewers 2021-03-11 15:59:15 +00:00
docshell Backed out changeset e072b56f8518 (bug 1696908) for causing bc failures in browser_bug1303838.js 2021-03-12 12:00:52 +02:00
dom Bug 1698175 - Add a pref for window.print to block. r=tsmith 2021-03-12 22:45:46 +00:00
editor Bug 1692673 - Update tests for new Cut/Copy command-enabling behavior. r=masayuki 2021-03-12 16:34:42 +00:00
extensions hg diff Bug 1695756 - Import the 'Adding a new word to the en-US dictionary' doc r=firefox-source-docs-reviewers,flod,championshuttler DONTBUILD 2021-03-02 13:25:44 +00:00
gfx Bug 1697963 - Properly override WebRenderUserData::GetGeometry for fallback. r=aosmond 2021-03-12 18:39:05 +00:00
gradle/wrapper
hal Bug 1694481 - Remove unused android lock screen orientation support. r=aklotz 2021-03-10 22:43:09 +00:00
image Bug 1697963 - Handle non-animated frozen images better, avoiding WR fallback. r=aosmond 2021-03-12 18:39:05 +00:00
intl Bug 1697076 - Drop assertion from mozilla::unicode::GetNaked. r=jfkthame 2021-03-11 09:42:18 +00:00
ipc Bug 1690921 - Limit IPC `sendmsg` gather list sizes based on socket buffer capacity. r=mccr8,gcp 2021-03-12 21:12:10 +00:00
js Bug 1697904 - Migrate the JIT spectre mitigation prefs to StaticPrefs. r=jandem 2021-03-13 00:33:09 +00:00
layout Bug 1694833 - Skip some mochitest-plain tests with fission so we can add new tasks, r=jmaher 2021-03-12 20:43:26 +00:00
media Bug 1690167 - Change VsprintfLiteral/SprintfLiteral to rely on PrintfTarget. r=nika,Gankra,firefox-build-system-reviewers,mhentges 2021-03-10 23:52:40 +00:00
memory Bug 1690167 - Change VsprintfLiteral/SprintfLiteral to rely on PrintfTarget. r=nika,Gankra,firefox-build-system-reviewers,mhentges 2021-03-10 23:52:40 +00:00
mfbt Bug 1690167 - Allocate some memory before running RandomNum tests. r=Gankra 2021-03-10 23:52:41 +00:00
mobile Bug 1695272: Move `--no-interactive` to global mach args r=firefox-build-system-reviewers,glandium 2021-03-12 16:07:11 +00:00
modules Bug 1697904 - Stop using RelaxedAtomicBool type for js prefs. r=jandem 2021-03-13 00:33:10 +00:00
mozglue Bug 1697282 - Make the repo buildable without MOZ_LAUNCHER_PROCESS. r=aklotz 2021-03-12 23:38:01 +00:00
netwerk Bug 1687283 - Part 2: Modify the AntiTrackingRedirectHeuristic. r=dimi 2021-03-12 08:45:29 +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 1692308 - Add an initial delay to IdleTaskRunner r=smaug 2021-03-12 06:55:46 +00:00
python Bug 1695366: Only submit Sentry events when Mach is unmodified r=sheehan 2021-03-12 22:29:28 +00:00
remote Bug 1695243 - [remote] Remove 3rd argument when importing "addDebuggerToGlobal". r=remote-protocol-reviewers,jdescottes 2021-03-09 15:15:40 +00:00
security Bug 1690921 - Detect socket syscalls only once per process when building Linux sandbox policies. r=gcp 2021-03-12 21:12:11 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM 2021-03-11 15:02:46 +00:00
servo Bug 1697842 - Don't specify a rayon minor version in Cargo.toml. r=jrmuizel 2021-03-11 18:23:01 +00:00
startupcache Bug 1688511 - do not use 'else' after 'return'. r=sylvestre 2021-02-04 09:24:19 +00:00
storage Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin 2021-03-10 10:47:47 +00:00
taskcluster Bug 1694833 - [ci] Enable mochitest-plain-fis on more platforms, r=jmaher 2021-03-12 20:43:26 +00:00
testing Bug 1697772 - Replace uses of "whitelist" with "allowlist" in Talos r=perftest-reviewers,sparky 2021-03-12 22:04:46 +00:00
third_party Bug 1691329 - Fix cursor capture for Windows and OS X; r=ng 2021-03-12 19:11:09 +00:00
toolkit Backed out changeset 3d812f02347c (bug 1698058) for causing OS X build bustages. CLOSED TREE 2021-03-13 03:18:51 +02:00
tools Bug 1697772 - Replace uses of "whitelist" with "allowlist" in Talos r=perftest-reviewers,sparky 2021-03-12 22:04:46 +00:00
uriloader Bug 1694481 - Remove unused code from exthandler/android. r=droeh,esawin 2021-03-10 22:43:08 +00:00
view Bug 1689682 - Long tooltips open on wrong screen r=mac-reviewers,mstange 2021-03-11 17:04:22 +00:00
widget Bug 1697756. Restructure dmanip code so it's not possible to hit MOZ_ASSERT(updateLastScale) in DManipEventHandler::OnContentUpdated. r=botond 2021-03-13 01:11:30 +00:00
xpcom Bug 1694530 - Allow to prepend a distinct header by using MOZ_LOG=prependheader. r=xpcom-reviewers,nika 2021-03-13 00:18:47 +00:00
xpfe/appshell Bug 1694481 - Remove unused code from exthandler/android. r=droeh,esawin 2021-03-10 22:43:08 +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 Bug 1696496 - Disable raptor tests running on windows10-64-ref-hw-2017. r=perftest-reviewers,igoldan 2021-03-11 14:13:09 +00:00
.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 1696873 - Apply automatic fixes to enable more ESLint rules on remaining docshell xhtml files. r=smaug 2021-03-08 13:41:52 +00:00
.flake8 Bug 1695263 - Vendor in a copy of wptserve that's still Python 2 compatible, r=marionette-reviewers,whimboo 2021-03-03 10:03:05 +00:00
.git-blame-ignore-revs Bug 1648010 - Add revisions for the replacement of literal string macros by string literals to the ignore sets. r=marco,glandium DONTBUILD 2020-12-01 09:04:42 +00:00
.gitattributes
.gitignore Bug 1687154 - Add raptor's generated files to .gitignore. r=glandium DONTBUILD 2021-01-19 00:34:55 +00:00
.hg-annotate-ignore-revs Bug 1648010 - Add revisions for the replacement of literal string macros by string literals to the ignore sets. r=marco,glandium DONTBUILD 2020-12-01 09:04:42 +00:00
.hg-format-source
.hgignore Bug 1666347 - Delete assorted dead code after removal of vendored `psutil` r=firefox-build-system-reviewers,rstewart 2020-11-27 16:21:07 +00:00
.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 Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
AUTHORS
CLOBBER
Cargo.lock Bug 1693912 - Renumber SIMD instructions based on final spec. r=rhunt 2021-03-12 17:23:54 +00:00
Cargo.toml Bug 1695646 - minidump_writer_linux mapping merge logic wrong r=gsvelto 2021-03-05 13:32:27 +00:00
GNUmakefile
LICENSE
Makefile.in Bug 1675086 - drop reference to 'pgo' from Windows AArch EME artifact build. r=nalexander 2020-11-03 22:46:57 +00:00
README.txt
aclocal.m4
build.gradle Bug 1685390 - Update apilint to 0.4.1. r=esawin 2021-01-08 16:17:22 +00:00
client.mk Bug 1683797: Removes unnecessary lines from client.mk r=sheehan,firefox-build-system-reviewers,glandium 2021-03-09 14:45:24 +00:00
client.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
configure.in Bug 1671424 - Move configure execution from client.mk to `mach configure`. r=firefox-build-system-reviewers,rstewart 2020-10-20 20:41:52 +00:00
configure.py Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
gradle.properties
gradlew
gradlew.bat
mach Bug 1638992 - Run ./mach test with Python 3, r=releng-reviewers,jmaher 2021-03-12 21:10:31 +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
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 1697098 - Default to --enable-bootstrap for arm64 mac builds. r=firefox-build-system-reviewers,andi,sheehan,mhentges 2021-03-09 21:27:52 +00:00
mozilla-config.h.in
old-configure.in Bug 1480005 - Move NM to python configure. r=firefox-build-system-reviewers,nalexander 2021-01-14 20:17:08 +00:00
package-lock.json
package.json
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

README.txt

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.