gecko-dev/dom
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
..
abort
animation Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame 2017-11-03 17:08:34 -07:00
asmjscache Bug 1389561 - Part 5: Prevent allocation of parent actors if quota manager is shutting down; r=luke 2017-11-02 14:54:29 +08:00
audiochannel
base 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
battery
bindings Bug 638054 - Remove or fix tests outside JS using watch/unwatch. r=bz,fitzgen 2017-10-24 20:48:14 +02:00
broadcastchannel Bug 1411257 - No MOZ_CRASH if BackgroundChild::GetOrCreateForCurrentThread() fails - part 1 - BroadcastChannel, r=asuth 2017-10-25 08:45:52 +02:00
browser-element
cache
canvas Bug 1404196 - Update test failures. 2017-11-01 15:18:31 -07:00
clients Bug 1413606 P2 Add IPC actor structure and boilerplate. r=baku 2017-11-01 13:19:38 -04:00
commandhandler
console
credentialmanagement Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
crypto Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
encoding
events 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
fetch Bug 1412125, part 1 - Manually add mode lines and MPL to files that were missing them entirely. r=qdot 2017-10-26 14:54:59 -07:00
file Bug 1414015 - Fixing a wrong comment in IPCBlobInputStream, r=smaug 2017-11-02 22:37:03 +01:00
filehandle Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
filesystem Bug 1411257 - No MOZ_CRASH if BackgroundChild::GetOrCreateForCurrentThread() fails - part 4 - FileSystem APIs, r=asuth 2017-10-25 08:45:52 +02:00
flyweb Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
gamepad Bug 1412872 - 8. Remove GeckoAppShell dependency in gecko-view; r=snorp 2017-11-01 14:54:04 -04:00
geolocation
grid
html Bug 1395922 - [P3] Make HTMLMediaElement::SetMediaKeys asynchronously. r=cpearce 2017-11-03 20:14:17 +08:00
imptests
indexedDB Bug 1389561 - Part 2: Wait for idle maintenance releasing DirectoryLock when finished. r=janv 2017-11-02 14:54:07 +08:00
interfaces Bug 1412437 - Remove nsIDOMHTMLTextAreaElement; r=bz 2017-11-01 14:28:22 -07:00
ipc Bug 1413606 P2 Add IPC actor structure and boilerplate. r=baku 2017-11-01 13:19:38 -04:00
json
jsurl
locales Bug 1302667 - CSP: Implement 'worker-src'. r=baku,dveditz,mckinley 2017-10-30 18:45:36 +01:00
manifest Bug 1412301 - Decrease save delay to ensure PWA manifests are actually written to disk before a user tries to run one. r=snorp 2017-11-01 10:17:36 -05:00
mathml
media Bug 1413734 - av1: Update decoder library. r=kinetik 2017-11-01 15:36:09 -07:00
messagechannel Bug 1411257 - No MOZ_CRASH if BackgroundChild::GetOrCreateForCurrentThread() fails - part 2 - MessagePort, r=asuth 2017-10-25 08:45:52 +02:00
network Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
notification Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
offline
payments Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
performance
permission
plugins Bug 1408490 - Re-enable dom/plugins/test/mochitest/test_bug1092842.html r=jmaher 2017-11-02 21:31:48 +09:00
power
presentation Bug 1412048 - Replace NS_RUNTIMEABORT("...") with MOZ_CRASH("..."). r=froydnj 2017-10-24 23:30:31 -07:00
promise
push Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
quota Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
res
script Bug 1412866 - Use spec nomenclature for the ignore-destructive-writes counter. r=smaug 2017-10-30 17:45:09 +02:00
secureelement
security Bug 1302667 - CSP: Update test_child-src_worker.html because child-src falls back to script-src. r=dveditz,mckinley 2017-10-30 18:46:34 +01:00
smil Bug 1411963 - Drop assertion about GetBaseValue not returning null in nsSMILCompositor::ComposeAttribute; r=dholbert 2017-10-31 16:22:04 +09:00
storage
svg Bug 1404422 - Part 4. Remove imgIOnloadBlocker and related from tree as redundant. r=tnikkel 2017-11-01 06:59:10 -04:00
system
tests Bug 1357082 - Disable dom/tests/mochitest/pointerlock/test_pointerlock-api.html on linux and windows for frequent failures. r=me, a=testonly 2017-10-30 07:56:23 -04:00
time
u2f Bug 1412408 - Fix content process leak of U2FTransactionChild instances r=jcj 2017-11-02 12:18:19 +01:00
url
vr Bug 1411630 - make mozilla::gfx::VRHMDSensorState to be trivial typed. r=kip 2017-10-30 14:51:32 +02:00
webauthn Bug 1412408 - Fix content process leak of U2FTransactionChild instances r=jcj 2017-11-02 12:18:19 +01:00
webbrowserpersist Bug 1412437 - Remove nsIDOMHTMLTextAreaElement; r=bz 2017-11-01 14:28:22 -07:00
webidl Bug 1412437 - Remove nsIDOMHTMLTextAreaElement; r=bz 2017-11-01 14:28:22 -07:00
workers Bug 1413466 - Fire events after iterating ServiceWorkerManager::mControlledDocuments is done. r=bkelly 2017-11-01 15:18:23 +08:00
worklet
xbl merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-11-01 22:57:02 +01:00
xhr Bug 1405696 - pass the document encoding to NS_NewURI for XMLHttpRequest; r=bkelly 2017-10-20 20:47:36 -04:00
xml
xslt Bug 1411893 - Introduce nsStaticAtom. r=emilio,froydnj. 2017-10-27 10:31:13 +11:00
xul Bug 1411893 - Introduce nsStaticAtom. r=emilio,froydnj. 2017-10-27 10:31:13 +11:00
jar.mn
moz.build Bug 1412864 Add ClientInfo and ClientState types. r=baku 2017-10-30 13:35:08 -04:00