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
Перейти к файлу
Masayuki Nakano df8f5c37dc Bug 1430628 - TextInputHandler::HandleCommand() should use native key event when it dispatches a keypress event either initializing with native event or creating fake event r=m_kato
TextInputHandler::HandleCommand() has two bugs.  One is, checking whether
the key event has caused composition events.  Even if it caused composition
events, we decided to dispatch keypress event for emulating native behavior.
Therefore, this patch removes the check of
|currentKeyEvent->CanDispatchKeyPress()|.

The other is, for making content handle dispatching keypress event as given
command, it needs to dispatch a keypress event whose key combination will
cause the command.  However, HandleCommand() needs to set native key event
since content may not refer key combination for some edit actions, they just
refer command which is computed with native key event with NativeKeyBindings.
Therefore, even if current native key event has already caused dispatching
some events, HandleCommand() needs to set
WidgetKeyboardEvent::mNativeKeyEvent to current native key event for
NativeKeyBindings.  Although it must be rare case, given key could be
not related to the command or not key could cause the command.  In this
case, and perhaps in all cases, we should set all commands of dispatching
keypress event before dispatching it.  Howevever, this needs more work,
so, we shouldn't do it in this bug to making it possible to uplift.
Therefore, this patch makes always set mNativeKeyEvent to current native
key event.  So, just warning it when command is caused without native
key event.

MozReview-Commit-ID: 2MvDTw4ruAu

--HG--
extra : rebase_source : 02a4ca980530aa16fa0e1aecd6d18fa42873c1dc
extra : source : 1e3137db3fe9822f34b98d59fb928497caca466a
2018-01-24 19:13:01 +09:00
.cargo Bug 1426116 - Update for changes in WR PR 2251. r=jrmuizel 2018-01-08 09:19:27 -05:00
.vscode Bug 1423565 - Update tasks.json as per documentation. r=rillian 2017-12-06 14:59:35 +01:00
accessible Bug 1432966: Sanitize HTML fragments created for chrome-privileged documents. r=bz f=gijs 2018-01-24 14:56:48 -08:00
browser Bug 1424095 - Tweak frontend CSS to play nicely in XUL flexbox emulation mode;r=Gijs 2018-01-04 10:25:30 -08:00
build Bug 1432390 - Vendor requests-unixsocket. r=dustin 2018-01-14 07:01:26 +09:00
caps Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE 2018-01-24 22:04:59 -08:00
chrome Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE 2018-01-24 22:04:59 -08:00
config Merge inbound to mozilla-central. a=merge 2018-01-24 23:56:14 +02:00
db Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
devtools Bug 1424095 - Force off flexbox emulation in the Browser Toolbox;r=jryans 2018-01-25 15:09:27 -08:00
docshell Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug 2018-01-24 17:17:31 +01:00
dom Merge mozilla-central to autoland 2018-01-26 02:31:18 +02:00
editor Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE 2018-01-24 22:04:59 -08:00
embedding Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE 2018-01-24 22:04:59 -08:00
extensions Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug 2018-01-24 17:17:31 +01:00
gfx Bug 1432541 - Don't reuse clips across a stacking context with a nonzero position. r=mstange 2018-01-25 18:19:42 -05:00
gradle/wrapper Backed out 20 changesets (bug 1411654) for incorrect android:debuggable. r=nalexander, a=RyanVM 2018-01-17 15:55:38 -05:00
hal Bug 1423552: Use BaseRect access methods instead of member variables in hal/ r=gsvelto 2018-01-10 11:17:58 -05:00
image Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug 2018-01-24 17:17:31 +01:00
intl Backed out changeset 804f26b2c6b8 (bug 1428698) for xpcshell failure on toolkit/mozapps/extensions/test/xpcshell/test_bug397778.js on a CLOSED TREE 2018-01-26 03:43:51 +02:00
ipc Merge inbound to mozilla-central. a=merge 2018-01-24 23:56:14 +02:00
js Merge inbound to mozilla-central. a=merge 2018-01-25 19:02:48 +02:00
layout Bug 1432541 - Add a reftest. r=mstange 2018-01-25 18:19:43 -05:00
media Bug 1429819: Allow using tooltool macOS SDK on all automation builds and all cross-builds. r=dminor 2018-01-23 11:56:50 -07:00
memory Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE 2018-01-24 22:04:59 -08:00
mfbt Bug 1430708 - Update lz4 to version 1.8.1.2. r=froydnj 2018-01-22 08:48:44 -05:00
mobile Merge mozilla-central to autoland 2018-01-26 02:31:18 +02:00
modules Merge mozilla-central to autoland 2018-01-26 02:31:18 +02:00
mozglue Bug 1433273 - Remove mozglue/linker/dladdr.h. r=froydnj 2018-01-26 06:21:30 +09:00
netwerk Merge inbound to mozilla-central. a=merge 2018-01-26 02:21:47 +02:00
nsprpub Bug 1420407, uplift NSPR_4_18_RTM, no code change, only version number. Require version 4.18 for building. r=me 2018-01-18 14:02:42 +01:00
other-licenses Backed out 5 changesets (bug 1418425) requested per comment #83. on a CLOSED TREE 2018-01-15 15:30:30 +02:00
parser Bug 1431000 - Replace the use of nsINode::InsertChildAt_Deprecated with nsINode::InsertChildBefore in nsHtml5TreeOperation, r=catalinb 2018-01-25 16:00:09 +01:00
python Bug 1430934 - mozboot: Update to rust 1.23.0. r=nalexander 2018-01-16 15:07:14 -08:00
rdf Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug 2018-01-24 17:17:31 +01:00
security Merge inbound to mozilla-central. a=merge 2018-01-26 02:21:47 +02:00
services Bug 1433042 - Fix initial FxA login flow. r=tcsc 2018-01-25 11:34:32 -05:00
servo servo: Merge #19868 - Use specific assertions (from CYBAI:specific-assertion); r=emilio 2018-01-25 18:06:33 -06:00
startupcache Bug 1431204 - Change calls to nsIURI.spec setter to use nsIURIMutator instead r=mayhemer 2018-01-19 15:19:42 +01:00
storage Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE 2018-01-24 22:04:59 -08:00
taskcluster Bug 1432390 - Allow to derive docker images from other in-tree images. r=dustin 2018-01-25 11:07:54 +09:00
testing Merge mozilla-central to autoland 2018-01-26 02:31:18 +02:00
third_party Bug 1432390 - Vendor requests-unixsocket. r=dustin 2018-01-14 07:01:26 +09:00
toolkit Bug 1428234 Part 2: Force extensions database rebuild r=kmag 2018-01-23 21:11:38 -08:00
tools Merge inbound to mozilla-central. a=merge 2018-01-25 19:02:48 +02:00
uriloader Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug 2018-01-24 17:17:31 +01:00
view Bug 1423551: Use BaseRect access methods instead of member variables in view/. r=jet 2018-01-10 11:16:22 -05:00
widget Bug 1430628 - TextInputHandler::HandleCommand() should use native key event when it dispatches a keypress event either initializing with native event or creating fake event r=m_kato 2018-01-24 19:13:01 +09:00
xpcom Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE 2018-01-24 22:04:59 -08:00
xpfe Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug 2018-01-24 17:17:31 +01:00
.arcconfig Bug 1424950: Add missing repository.callsign to .arcconfig. r=dkl 2017-12-13 15:38:18 +01:00
.clang-format Bug 1414764 - Remove Mozilla specific options to avoid build warnings with gcc and -Wcomment enabled. r=sylvestre 2017-11-06 11:47:40 +02:00
.clang-format-ignore Bug 1430792 - ExampleStylesheet.h should not be formatted r=andi 2018-01-16 16:37:01 +01:00
.cron.yml Bug 1418188 - Run Searchfox indexing in TaskCluster on a daily basis (r=dustin,chmanchester) 2017-11-23 07:25:12 -08:00
.eslintignore Bug 1419102 - Implement the Enterprise Policies feature to provide enterprise users with easier control and setup of deployments of Firefox. r=Mossop 2018-01-22 17:01:48 -02:00
.eslintrc.js Bug 1429701 - Enable ESLint rule mozilla/use-services for dom/indexedDB. r=bevis 2018-01-10 17:25:52 +00:00
.flake8 Bug 1395126 - Support cascading configuration for flake8, r=bc 2017-08-29 17:32:31 -04:00
.gdbinit Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
.gdbinit_python Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted 2017-05-25 11:48:03 -04:00
.gitignore Bug 1429511 - Move Rust port of mozrunner to central. r=ahal 2018-01-12 15:31:20 +00:00
.hgignore Bug 1431177 - Update hgignore for talos webkit tests; r=jmaher 2018-01-17 13:59:55 -05:00
.hgtags Added tag FIREFOX_NIGHTLY_59_END for changeset 5faab9e61990 2018-01-22 11:14:37 +00:00
.inferconfig
.lldbinit Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
.taskcluster.yml bug 1328719 - task.extra.cron + task.payload.env.ACTION_TASK_GROUP_ID. r=bstack r=dustin 2018-01-12 22:17:39 -08:00
.yamllint Bug 1392795 - [yamllint] Group paths to lint by their closest config and run each config group separately, r=dustin 2017-08-23 11:28:28 -04:00
.ycm_extra_conf.py
AUTHORS Bug 1111333 - Enable double-tap-drag to zoom. r=kats 2017-05-23 19:53:06 +02:00
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-01-22 11:19:18 +00:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1424651: Remove unused SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE mozconfig variable; r=ted.mielczarek 2017-12-10 23:05:05 -07:00
README.txt
aclocal.m4 Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
build.gradle Backed out 20 changesets (bug 1411654) for incorrect android:debuggable. r=nalexander, a=RyanVM 2018-01-17 15:55:38 -05:00
client.mk Bug 1417264 - Write .mozconfig.json from Python; r=nalexander 2017-11-13 17:45:03 -08:00
client.py Bug 1399100 - fix client.py follow-up, r=kaie 2017-09-20 09:13:14 +02:00
configure.in
configure.py Bug 1412460 - Don't write make variables in configure.d; r=mshal 2017-11-01 15:02:11 -07:00
gradle.properties Backed out 20 changesets (bug 1411654) for incorrect android:debuggable. r=nalexander, a=RyanVM 2018-01-17 15:55:38 -05:00
gradlew
mach
moz.build Backed out 2 changesets (bug 1403519) for bustage on \python\mozbuild\mozbuild\test\frontend\test_reader.py on a CLOSED TREE 2018-01-17 07:23:40 +02:00
moz.configure Bug 1425035 - move --enable-ui-locale to moz.configure; r=gps 2017-12-18 14:21:26 -08:00
mozilla-config.h.in Bug 1426898 - Stop including Char16.h everywhere. r=Waldo 2017-12-23 00:53:12 +09:00
npm-shrinkwrap.json Bug 1371293 - Upgrade ESLint to version 4.8.0, configuration changes. r=mossop 2017-10-09 10:54:16 +01:00
old-configure.in Bug 1432177 - bump NSS version in old-configure.in 2018-01-23 11:52:03 +01:00
package.json Bug 1371293 - Upgrade ESLint to version 4.8.0, configuration changes. r=mossop 2017-10-09 10:54:16 +01:00
settings.gradle Bug 1360587 - Part 2. Remove bouncer apk build config; source; docs, r=nalexander 2017-10-25 22:51:44 +08:00
test.mozbuild

README.txt

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.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://nightly.mozilla.org/