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 151b00226e Bug 1793267 - Make PostEventHandler::CheckPointerCaptureState synthesize ePointerMove and eMouseMove if nobody captures the pointer anymore r=smaug
When an element starts capturing a pointer, pointer/mouse boundary events are
dispatched by `EventStateManager::PreHandleEvent` [1].  However, when the
capturing element loses the capture, they are not dispatched.

When the pointer capture is implicitly released, the pointer may be over another
document.  Therefore, this patch synthesizes an internal `ePointerMove` and
`eMouseMove` on the widget to make `PresShell::HandleEvent` redirects the event
to proper document under the pointer.

Unfortunately, I add 2 manual tests into WPT.  The reason is, a drag operation
across document boundary with test driver does not work even if I specify the
pointer position within the parent document coordinates.  This is same both on
Firefox and Chrome.  Additionally, writing the new tests as a mochitest won't
work too.  If I use synthesized mouse events, I see similar failure.
Additionally, when I use native events, it works, but unstable to run on CI.

1. https://searchfox.org/mozilla-central/rev/669fac9888b173c02baa4c036e980c0c204dfe02/dom/events/EventStateManager.cpp#1139-1140

Differential Revision: https://phabricator.services.mozilla.com/D218896
2024-08-20 03:42:26 +00:00
.cargo Bug 1913121: Update wgpu to c6a3d9273 (2024-08-13) r=webgpu-reviewers,supply-chain-reviewers,ErichDonGubler,teoxoy 2024-08-19 18:46:19 +00:00
.github/workflows
.vscode
accessible Bug 1900668 - Use GDBusProxy for platform a11y enabled check. r=Jamie 2024-08-09 16:17:17 +00:00
browser Bug 1912565 - Show sponsored suggestions at the bottom of the Firefox Suggest section when search suggestions are disabled or the default engine doesn't support them. r=daisuke 2024-08-20 01:12:50 +00:00
build Bug 1913656 - Do not set default value for MOZ_OPTIMIZE_FLAGS environment variable to make the default state falsy. r=firefox-build-system-reviewers,sergesanspaille 2024-08-19 19:53:49 +00:00
caps Bug 1912804 - Don't warn in BasePrincipal::IsL10nAllowed if GetURI return null. r=peterv,dom-core 2024-08-13 12:40:13 +00:00
chrome Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi 2024-08-01 17:12:48 +00:00
config Backed out changeset fb02d762cca9 (bug 1910796) for causing mass assertion failures on Compression. CLOSED TREE 2024-08-15 15:32:52 +03:00
devtools Bug 1913039 - [devtools] Fix browser_net_layout_after_toggle.js issues in test-verify r=devtools-reviewers,nchevobbe 2024-08-19 08:53:31 +00:00
docs Bug 1906260: Remove the -no-remote command line argument. r=glandium,webdriver-reviewers,perftest-reviewers,application-update-reviewers,taskgraph-reviewers,nalexander,bhearsum,jdescottes,sparky 2024-08-13 14:13:10 +00:00
docshell Bug 1881037 - Part 2: Add a basic test for loading unknown protocols in a popup window, r=smaug 2024-08-15 10:19:49 +00:00
dom Bug 1793267 - Make PostEventHandler::CheckPointerCaptureState synthesize ePointerMove and eMouseMove if nobody captures the pointer anymore r=smaug 2024-08-20 03:42:26 +00:00
editor Bug 1906559 - Make AutoInlineStyleSetter::OnHandled() never set point in aContent if it's not a container r=m_kato 2024-08-19 00:35:33 +00:00
extensions Bug 1906744 - Check if constructor is enabled before installing named property. r=mccr8,dom-storage-reviewers,janv,asuth,eemeli 2024-08-08 16:35:19 +00:00
gfx Bug 1913121: Update wgpu to c6a3d9273 (2024-08-13) r=webgpu-reviewers,supply-chain-reviewers,ErichDonGubler,teoxoy 2024-08-19 18:46:19 +00:00
gradle/wrapper Backed out 2 changesets (bug 1900345) for preventing Fenix builds with Android Studio in the repository root. a=backout 2024-06-12 18:05:25 +02:00
hal Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato 2024-07-17 11:15:31 +00:00
image Bug 1910297. Handle repaint propagation to the root if the root is a table. r=layout-reviewers,emilio 2024-08-09 10:25:21 +00:00
intl Bug 1912853 - Remove network.IDN.* prefs r=necko-reviewers,hsivonen,valentin 2024-08-13 21:12:55 +00:00
ipc Bug 1908725 - Part 5: Add additional validation for early-startup command line checks, r=ipc-reviewers,mccr8 2024-08-07 20:39:41 +00:00
js Bug 1907053 - Obsolete MOZ_POST_PROGRAM_COMMAND from old-configure r=glandium 2024-08-18 07:50:10 +00:00
layout Bug 1793267 - Make PostEventHandler::CheckPointerCaptureState synthesize ePointerMove and eMouseMove if nobody captures the pointer anymore r=smaug 2024-08-20 03:42:26 +00:00
media Bug 1910690 - Update opus to 5854a9f7de06ab3505b8fe6e8943db581c2cbe70 r=kinetik 2024-08-15 09:18:50 +00:00
memory Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato 2024-07-17 11:15:31 +00:00
mfbt Bug 1910421: Support float16 in mozilla::FloatingPoint. r=jandem 2024-08-01 06:02:40 +00:00
mobile no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE 2024-08-20 00:16:20 +00:00
modules Bug 1908925 - Enforce storage.session quota in Nightly builds r=robwu,mccr8 2024-08-19 18:25:35 +00:00
mozglue Bug 1908725 - Part 5: Add additional validation for early-startup command line checks, r=ipc-reviewers,mccr8 2024-08-07 20:39:41 +00:00
netwerk Bug 1889130 - add test to verify if we block 0.0.0.0 address. r=necko-reviewers,valentin 2024-08-19 13:31:42 +00:00
nsprpub
other-licenses Bug 1896868: update InetBgDL.dll nsis plugin with a statically linked version r=nalexander,jcristau 2024-05-27 14:19:48 +00:00
parser Bug 1910951 - Avoid incorrect use of nsParser when meta refresh is added to about:blank. r=sefeng 2024-08-13 15:15:03 +00:00
python Bug 1907538 - Add metavar support to moz.configure options r=glandium 2024-08-15 23:27:17 +00:00
remote Bug 1909455 - [bidi] Do not return "unhandledPromptBehavior" capability when not provided by a client. r=webdriver-reviewers,jdescottes 2024-08-19 11:42:15 +00:00
security Bug 1913794 - migrate some PSM timing telemetry histograms to glean timing distributions r=jschanck 2024-08-19 22:03:24 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes ct-logs - r=release-managers,diannaS 2024-08-16 07:23:15 +00:00
servo Bug 1911353 - Unify how we reject !important in keyframe and @position-try. r=dshin 2024-08-16 13:14:05 +00:00
startupcache
storage Bug 1900093 - Add OPEN_NOT_EXCLUSIVE option for opening sqlite database. r=mak 2024-06-12 00:17:58 +00:00
supply-chain Bug 1913121: Update wgpu to c6a3d9273 (2024-08-13) r=webgpu-reviewers,supply-chain-reviewers,ErichDonGubler,teoxoy 2024-08-19 18:46:19 +00:00
taskcluster Bug 1913686 - Snap tests should continue after assert r=benchatt 2024-08-19 19:58:03 +00:00
testing Bug 1793267 - Make PostEventHandler::CheckPointerCaptureState synthesize ePointerMove and eMouseMove if nobody captures the pointer anymore r=smaug 2024-08-20 03:42:26 +00:00
third_party Bug 1912106: Update to perfetto v47.0. r=smaug 2024-08-19 21:07:28 +00:00
toolkit Bug 1913794 - migrate some PSM timing telemetry histograms to glean timing distributions r=jschanck 2024-08-19 22:03:24 +00:00
tools Bug 1908925 - Enforce storage.session quota in Nightly builds r=robwu,mccr8 2024-08-19 18:25:35 +00:00
uriloader Bug 1890028 - Display Server Error message when server returns HTTP 500 and unusual content-type r=kershaw,fluent-reviewers,necko-reviewers,flod 2024-08-07 13:31:02 +00:00
view Bug 1831649 - Propagate the software keyboard height change into nsPresContext. r=botond,geckoview-reviewers,m_kato 2024-08-06 07:46:21 +00:00
widget Bug 1793267 - Make PostEventHandler::CheckPointerCaptureState synthesize ePointerMove and eMouseMove if nobody captures the pointer anymore r=smaug 2024-08-20 03:42:26 +00:00
xpcom Bug 1909898 [1/1] - Skip checking initialization if check-function is not found r=yjuglaret 2024-08-19 16:19:25 +00:00
xpfe/appshell Bug 1905253 - Add a null-check in AppWindow::MoveResize. r=smaug 2024-07-16 07:43:22 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore Bug 1890370 - Remove libtheora from the tree. r=sylvestre,frontend-codestyle-reviewers,zeid 2024-07-15 14:20:37 +00:00
.cron.yml Bug 1907655: remove l10n bump cron task/hook from mozilla-central r=RyanVM,aryx,releng-reviewers,jcristau 2024-07-15 14:35:53 +00:00
.eslintrc-ignores.js Bug 1907841 - Change ESLint's .eslintignore to be an imported module. r=frontend-codestyle-reviewers,zeid,devtools-reviewers,nchevobbe 2024-07-16 12:53:09 +00:00
.eslintrc-rollouts.js Bug 1896774 - Expose length in MPRIS metadata r=media-playback-reviewers,alwu,frontend-codestyle-reviewers 2024-08-09 16:39:25 +00:00
.eslintrc-test-paths.js Bug 1906047 - Move toolkit/profile/ tests into a test sub-directory. r=mossop 2024-07-08 08:51:18 +00:00
.eslintrc.js Bug 1907841 - Change ESLint's .eslintignore to be an imported module. r=frontend-codestyle-reviewers,zeid,devtools-reviewers,nchevobbe 2024-07-16 12:53:09 +00:00
.git-blame-ignore-revs
.gitattributes
.gitignore Backed out 4 changesets (bug 1743983) for causing multiple failures. CLOSED TREE 2024-08-06 01:49:21 +03:00
.hg-annotate-ignore-revs
.hgignore Backed out 4 changesets (bug 1743983) for causing multiple failures. CLOSED TREE 2024-08-06 01:49:21 +03:00
.hgtags No bug - tagging a12975dc04594d4ebd1d3e2927c6c1f18b7aa09c with FIREFOX_NIGHTLY_130_END a=release DONTBUILD CLOSED TREE 2024-08-05 13:59:00 +00:00
.lando.ini
.lldbinit
.mailmap No bug - Add some old committer emails to mailmap. DONTBUILD 2024-07-21 00:20:52 +00:00
.prettierignore Bug 1907841 - Change ESLint's .eslintignore to be an imported module. r=frontend-codestyle-reviewers,zeid,devtools-reviewers,nchevobbe 2024-07-16 12:53:09 +00:00
.prettierrc.js
.stylelintignore Bug 1899373 - Update PDF.js to 24e12d515dce2f11b392410dd6e6e9926270ac65 r=pdfjs-reviewers,frontend-codestyle-reviewers,marco 2024-05-30 12:35:49 +00:00
.stylelintrc.js
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4 Bug 1907067 - Remove AC_PROG_CC, AC_PROG_CXX and MOZ_CROSS_COMPILER from old-configure r=glandium 2024-08-15 09:39:59 +00:00
AUTHORS
build.gradle Bug 1880792, 1880801, 1880805 - Compile Focus, Fenix, AC and GV with SDK 35. r=android-reviewers,geckoview-reviewers,ohall 2024-08-08 08:02:32 +00:00
Cargo.lock Bug 1913121: Update wgpu to c6a3d9273 (2024-08-13) r=webgpu-reviewers,supply-chain-reviewers,ErichDonGubler,teoxoy 2024-08-19 18:46:19 +00:00
Cargo.toml Bug 1913183 - Vendor in app-services, r=nanj,supply-chain-reviewers,urlbar-reviewers,adw 2024-08-16 16:18:07 +00:00
client.mk
client.py
CLOBBER Bug 1909234 - Vendor libwebrtc from 67fd83eae2 - moz.build file updates 2024-08-07 10:14:57 -05:00
configure
configure.py
GNUmakefile
gradle.properties Bug 1881094 - 7. cleanup firefox-android exclusions in license.yml r=gl,android-reviewers 2024-05-09 16:28:42 +00:00
gradlew Backed out 2 changesets (bug 1900345) for preventing Fenix builds with Android Studio in the repository root. a=backout 2024-06-12 18:05:25 +02:00
gradlew.bat
LICENSE
mach
mach.cmd
mach.ps1
Makefile.in Bug 1821091 - Send Glean crash pings from the crashreporter r=gsvelto,glandium 2024-07-16 14:08:52 +00:00
mots.yaml Bug 1911899 - Update owner of Testing::Gtest r=zeid DONTBUILD 2024-08-12 21:56:54 +00:00
moz.build Bug 1903972 - content-security docs r=ckerschb 2024-06-21 13:42:13 +00:00
moz.configure Backed out changeset fb02d762cca9 (bug 1910796) for causing mass assertion failures on Compression. CLOSED TREE 2024-08-15 15:32:52 +03:00
mozilla-config.h.in
old-configure.in Bug 1907056 - Move ACCEPTED_MAR_CHANNEL_IDS from old-configure to moz.configure r=glandium 2024-08-18 07:50:10 +00:00
package-lock.json Bug 1898556 - Remove eslint-plugin-file-header, update various node modules. r=frontend-codestyle-reviewers,Gijs 2024-05-24 14:55:33 +00:00
package.json Bug 1898556 - Remove eslint-plugin-file-header, update various node modules. r=frontend-codestyle-reviewers,Gijs 2024-05-24 14:55:33 +00:00
pyproject.toml
README.txt
settings.gradle Bug 1894704 - Check if the gradle extension mozconfig property is set and only apply mozconfig.gradle when it is not available. r=gl,geckoview-reviewers,android-reviewers,ohall 2024-08-19 15:24:50 +00:00
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.