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 93977460e2 Bug 1406446 - part 1: InputContextAction should treat focus change during handling a user input as caused by user input even if it's caused by JS r=smaug
Currently, widget doesn't show VKB when input context change is caused by JS.
However, if it's caused by an event handler of a user input, user may expect
to open VKB.  For example, if a touch event in fake editor causes moving
focus to actual editable node, user expect to show VKB.

Therefore, InputContextAction should declare two causes.  One is unknown but
occurred during handling non-keyboard event.  The other is unknown but occurred
during handling keyboard event.

However, EventStateManager doesn't have an API to check if it's being handling
a keyboard event.  Therefore, this patch adds it first.
AutoHandlingUserInputStatePusher sends event type to StartHandlingUserInput()
and StopHandlingUserInput() of EventStateManager and sUserKeyboardEventDepth
manages the number of nested keyboard event handling.  Therefore,
EventStateManager::IsHandlingKeyboardInput() can return if it's handling a
keyboard event.

IMEStateManager uses this new API to adjust the cause of changes of input
context.

Finally, InputContextAction::IsUserInput() is renamed to IsHandlingUserInput()
for consistency with EventStateManager and starts to return true when the
input context change is caused by script while it's handling a user input.

MozReview-Commit-ID: 5JsLqdqeGah

--HG--
extra : rebase_source : 9fcf7687d1bf90eeebbf6eac62d4488ff64b083c
2017-10-24 02:46:15 +09:00
.cargo
.vscode Bug 1377937 - Fix VSCode tasks on Windows (NPOTB, DONTBUILD). r=gps 2017-07-03 21:55:07 +03:00
accessible Bug 1410159: Add additional IUnknown resolution to a11y::HandlerProvider; r=Jamie 2017-11-02 15:37:57 -06:00
browser Bug 1413550 - Add per-platform styles, per-locale html and bug fixes to Activity Stream. r=k88hudson 2017-11-03 12:08:30 -07:00
build Bug 1409259 - Add browser console test for the distrust console message r=keeler,ttaubert 2017-11-01 20:59:33 -07:00
caps Bug 1411817: Add do_AddRef overloads for nsCOMPtr<T> and nsRevocableEventPtr<T>. r=froydnj 2017-10-25 19:46:50 -07:00
chrome Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame 2017-11-03 17:08:34 -07:00
config Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-03 12:04:55 +02:00
db Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
devtools Bug 1412273 - Adjust CSS shapes highlighter toggle to be visible in dark theme. r=jdescottes 2017-11-01 12:25:50 -04:00
docshell Bug 1412982 - Compile nsDownloadHistory only if Places is not used. r=mak 2017-11-02 17:30:01 +01:00
dom Bug 1406446 - part 1: InputContextAction should treat focus change during handling a user input as caused by user input even if it's caused by JS r=smaug 2017-10-24 02:46:15 +09:00
editor merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-01 22:55:12 +01:00
embedding Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
extensions Bug 1407720 - Merge nsICookieManager and nsICookieManager2 r=nwgh 2017-10-31 13:02:28 +01:00
gfx Bug 1413178 - Initialize the new field that was added in webrender commit 479d43ab4f245c42b33e12f9b6f050045ec84ab3. r=lsalzman 2017-11-03 00:37:20 -04:00
gradle/wrapper Bug 1366644 - Part 3a: Update Android build-tools (25.0.3), Gradle (3.4.1), Android-Gradle (2.3.3). r=maliu 2017-10-16 15:09:15 -07:00
hal Bug 1412048 - Replace NS_RUNTIMEABORT("...") with MOZ_CRASH("..."). r=froydnj 2017-10-24 23:30:31 -07:00
image Bug 1373258 - Convert PageThumbsProtocol.js to PageThumbsProtocol.cpp r=adw 2017-06-05 10:04:06 -04:00
intl Bug 1414186 - Use GetUserPreferredUILanguages for OSPreferences::SystemLocales. r=jfkthame 2017-11-03 00:51:05 -07:00
ipc Backed out 6 changesets (bug 1386404) for XPCshell failures, at least on Linux. r=backout on a CLOSED TREE 2017-11-03 20:28:00 +01:00
js Bug 1414030 - Update the `bindgen` dependency for `js/rust`. r=emilio 2017-11-02 12:08:00 -04:00
layout Backed out 5 changesets (bug 1413166) for failing valgrind-test at Conditional jump or move depends on uninitialised value(s) at nsCSSRuleProcessor::InitSystemMetrics / InitSystemMetrics / nsCSSRuleProcessor::HasSystemMetric / GetSystemMetric r=backout on a CLOSED TREE. 2017-11-03 15:55:56 +02:00
media Bug 1413734 - av1: fix build issues. r=kinetik 2017-11-01 15:49:14 -07:00
memory Bug 1414073 - Rename arena_bin_t fields. r=njn 2017-11-03 09:26:07 +09:00
mfbt Bug 1412825 - fix lz4 deprecated attribute with clang and c++14; r=RyanVM 2017-10-30 10:12:38 -04:00
mobile Backed out 5 changesets (bug 1411688) for flake8 linting failure at testing/mozharness/scripts/mobile_l10n.py. r=backout on a CLOSED TREE 2017-11-04 00:49:47 +01:00
modules Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-03 12:04:55 +02:00
mozglue Bug 1411712 - Move symbol version script flags for arm in mozglue to moz.build. r=mshal 2017-11-02 11:47:48 -07:00
netwerk Merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-03 12:04:55 +02:00
nsprpub Bug 1393854, land NSPR_4_18_RTM, no code change, only version numbers, r=me 2017-09-19 18:43:02 +02:00
other-licenses Bug 1413568 - Update installer icons. r=mconley 2017-11-02 08:34:22 -07:00
parser Bug 1385288 - Disable parser/htmlparser/tests/reftest/bug582940-1.html on osx for frequent failures. r=me, a=testonly 2017-11-02 13:15:06 -04:00
python Bug 1414349 - Re-sync the list of top level crates for `mach cargo check`; r=mbrubeck 2017-11-03 10:49:34 -07:00
rdf Bug 1409329 - NS_NewBufferedOutputStream should take the ownership of the outputStream, r=smaug 2017-10-24 14:38:23 +02:00
security Backed out 6 changesets (bug 1386404) for XPCshell failures, at least on Linux. r=backout on a CLOSED TREE 2017-11-03 20:28:00 +01:00
services Bug 1366067 - Use `JSONFile.jsm` to persist the backlog and previously failed IDs. r=tcsc 2017-11-01 11:10:47 -07:00
servo Backed out changeset dbd300f4d75b for build bustage. r=backout on a CLOSED TREE 2017-11-04 00:55:25 +01:00
startupcache Bug 1408017 - Clear gStartupCacheWrapper in the dtor. r=froydnj 2017-10-26 16:47:27 -04:00
storage Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop 2017-10-26 11:47:01 +01:00
taskcluster Backed out 5 changesets (bug 1411688) for flake8 linting failure at testing/mozharness/scripts/mobile_l10n.py. r=backout on a CLOSED TREE 2017-11-04 00:49:47 +01:00
testing Backed out 5 changesets (bug 1411688) for flake8 linting failure at testing/mozharness/scripts/mobile_l10n.py. r=backout on a CLOSED TREE 2017-11-04 00:49:47 +01:00
third_party No bug - Revendor rust dependencies 2017-11-03 18:06:07 +00:00
toolkit Backed out 5 changesets (bug 1383300) for leaks 2017-11-03 20:13:58 -07:00
tools Bug 1388224 - Remove SyncStorageRequest HTTP wrapper class, which is no longer used r=kitcambridge 2017-11-01 17:17:46 -04:00
uriloader Bug 1409259 - Add a console warning for soon-to-be-distrusted roots r=keeler,ttaubert 2017-10-18 22:29:42 -07:00
view Bug 1397644 part 2 - Remove test annotations for this bug. r=emilio 2017-10-20 21:31:13 +11:00
widget Bug 1406446 - part 1: InputContextAction should treat focus change during handling a user input as caused by user input even if it's caused by JS r=smaug 2017-10-24 02:46:15 +09:00
xpcom Backed out 6 changesets (bug 1386404) for XPCshell failures, at least on Linux. r=backout on a CLOSED TREE 2017-11-03 20:28:00 +01:00
xpfe Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj 2017-10-21 23:53:02 +09:00
.clang-format Bug 1399359 - Enable clang-format option SplitEmptyFunction to have empty constructor correctly placed r=andi,jya 2017-09-13 08:39:43 +02:00
.clang-format-ignore Backed out changeset 31f259ee387b (bug 1411004) for failing flake8 at tools/mach_commands.py:307:14 | indentation is not a multiple of four. r=backout 2017-10-31 16:20:11 +01:00
.clang-tidy Bug 1319396 - Update the list of checkers in the .clang-tidy file r=Ehsan 2016-11-22 12:30:19 +01:00
.cron.yml No Bug - Move periodic file update start time earlier, to reflect when buildbot used to run. r=me 2017-10-20 11:17:50 -04:00
.eslintignore Bug 1403956 - Enable ESLint from chrome/ directory. r=standard8 2017-10-26 16:56:18 -04:00
.eslintrc.js Bug 1359011 - Make the mozilla/recommended eslint configuration the default for the whole tree. r=mossop 2017-04-25 20:12:21 +01: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 1412930 - Package localized prerendered files. r=k88hudson 2017-10-30 13:13:35 -07:00
.hgignore Bug 1410341 - add toolchains.json to .hgignore;r=jmaher 2017-10-20 10:53:20 +02:00
.hgtags No bug - Tagging mozilla-central 40a14ca1cf04499f398e4cb8ba359b39eae4e216 with FIREFOX_BETA_58_BASE a=release DONTBUILD CLOSED TREE 2017-11-02 16:47:50 +00:00
.inferconfig Bug 1357629 - Add httpclientandroidlib to .inferconfig ignore list r=nalexander,njpark 2017-04-18 20:05:25 -07:00
.lldbinit Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
.taskcluster.yml Bug 1409577 - Add static indexes to decision task r=dustin 2017-10-18 11:55:01 -04: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 Bug 1413550 - Add per-platform styles, per-locale html and bug fixes to Activity Stream. r=k88hudson 2017-11-03 12:08:30 -07:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1412356 - Update CLOBBER message to not recommend client.mk; r=chmanchester 2017-10-27 10:19:05 -07:00
README.txt Bug 1349108 - Update links in README.txt to HTTPS r=RyanVM 2017-03-21 00:11:02 -04:00
aclocal.m4 Bug 1363992 - Remove jemalloc 4. r=njn 2017-05-11 13:23:07 +09:00
build.gradle Backed out 5 changesets (bug 1411688) for flake8 linting failure at testing/mozharness/scripts/mobile_l10n.py. r=backout on a CLOSED TREE 2017-11-04 00:49:47 +01:00
client.mk Bug 1412431 - Remove support for MOZ_BUILD_PROJECTS; r=nalexander 2017-10-27 15:20:34 -07: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 Bug 1366644 - Pre: Bump Gradle JVM heap to allow in-process dex. r=maliu 2017-07-18 17:59:57 -07:00
gradlew
mach Bug 1316140 - Allow use of multiprocessing from config.status on windows. r=mshal 2016-12-21 16:28:28 -08:00
moz.build Bug 1413538 - remove unused FILES_PER_UNIFIED_FILE from root moz.build; r=chmanchester 2017-11-01 13:50:00 -04:00
moz.configure Bug 1403346 - Define flags loading the clang plugin in configure rather than the make backend. r=glandium 2017-10-25 15:12:10 -07:00
mozilla-config.h.in Bug 1371266 - libpng should be built with -std=c89. r=glennrp 2017-06-08 06:29:03 -07:00
npm-shrinkwrap.json Bug 1405237 - Revert unexpected npm-shrinkwrap.json changes in bug 1349689 r=Gijs 2017-10-03 17:04:14 +08:00
old-configure.in Backed out changeset f8eae610782a (bug 1414067) for Android build bustage at media/libstagefright/system/core/include/cutils/properties.h:61: use of undeclared identifier 'PROP_VALUE_MAX'. r=backout on a CLOSED TREE 2017-11-03 17:33:15 +01:00
package.json Bug 1410782 - Fix props.connector is undefined when running launchpad r=Honza 2017-10-23 15:39:47 +08: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/