gecko-dev/widget/android
Makoto Kato fc29e1e8e1 Bug 1596920 - Don't set selection on dispatching key event if unnecessary. r=geckoview-reviewers,snorp
Actually we emulate key event (down, press and up) from replace transaction of
`Editable`. When dispatching key press, we always update current caret position.

Most situations is the following.
1. Dispatch keypress
2. Dispatch another keypress
3. Receive merged text/selection change result by 1. and 2.
4. Sync shadow (Java's Editable) text with 3.'s result. It means selection is
   correct position now.
5. Dispatch keypress with correct position.

When this issue occurs, the following situation occurs.
1. Dispatch keypress
2. Dispatch another keypress
3. Receive text/selection change result of 1.
4. Sync shadow (Java's Editable) text with 3.'s result. It means selection is
   old position now.
5. Dispatch another keypress with old position.
6. Receive text/selection change result of 2.
7. Receive text/selection change result of 5.

So when dispatching key press, we shouldn't always update selection if unnecessary.
Because selection range is already often set before dispatching key press.

Differential Revision: https://phabricator.services.mozilla.com/D71179
2020-04-28 14:02:10 +00:00
..
bindings Bug 1609278 - Replace bugzilla product and component assignment 'Firefox for Android :: General' with 'GeckoView :: General'. r=kbrosnan DONTBUILD 2020-03-06 17:54:58 +00:00
jni Bug 1625138 - Part 29: Replace mozilla::IsVoid with std::is_void. r=froydnj 2020-03-28 13:57:19 +00:00
AndroidAlerts.cpp
AndroidAlerts.h
AndroidBridge.cpp Bug 1577890 - part3 : remove media control related code in AndroidBridge. r=snorp 2020-03-05 22:40:55 +00:00
AndroidBridge.h Bug 1577890 - part3 : remove media control related code in AndroidBridge. r=snorp 2020-03-05 22:40:55 +00:00
AndroidBridgeUtilities.h
AndroidColors.h Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel 2020-03-09 14:16:17 +00:00
AndroidCompositorWidget.cpp
AndroidCompositorWidget.h
AndroidContentController.cpp
AndroidContentController.h
AndroidDirectTexture.h
AndroidGraphicBuffer.h
AndroidUiThread.cpp
AndroidUiThread.h
Base64UtilsSupport.h
components.conf
EventDispatcher.cpp
EventDispatcher.h
GeckoBatteryManager.h
GeckoEditableSupport.cpp Bug 1596920 - Don't set selection on dispatching key event if unnecessary. r=geckoview-reviewers,snorp 2020-04-28 14:02:10 +00:00
GeckoEditableSupport.h Bug 1613804 - InputConnection.finishComposingText should commit composition text. r=geckoview-reviewers,snorp 2020-03-13 18:01:50 +00:00
GeckoNetworkManager.h
GeckoProcessManager.h
GeckoScreenOrientation.h
GeckoSystemStateListener.h
GeckoTelemetryDelegate.h
GeckoVRManager.h
GfxInfo.cpp Bug 1607322 - Enable webrender for Pixel 2/3 on release r=jnicol 2020-04-17 16:34:10 +00:00
GfxInfo.h
ImageDecoderSupport.cpp Bug 1628929 - part1 : break the cyclic reference after receiving decoded image. r=emilio,agi 2020-04-15 02:48:34 +00:00
ImageDecoderSupport.h
MediaKeysEventSourceFactory.cpp
moz.build
nsAndroidProtocolHandler.cpp
nsAndroidProtocolHandler.h
nsAppShell.cpp Bug 1629759 - Remove unused dom.event.touch.coalescing.enabled preference. r=geckoview-reviewers,agi 2020-04-15 21:20:11 +00:00
nsAppShell.h Bug 1629759 - Remove unused dom.event.touch.coalescing.enabled preference. r=geckoview-reviewers,agi 2020-04-15 21:20:11 +00:00
nsClipboard.cpp
nsClipboard.h
nsDeviceContextAndroid.cpp
nsDeviceContextAndroid.h
nsIAndroidBridge.idl
nsIdleServiceAndroid.cpp
nsIdleServiceAndroid.h
nsLookAndFeel.cpp Bug 1626389 - Part 1. Use JNI to get password setting even if content process. r=geckoview-reviewers,snorp 2020-04-21 14:54:29 +00:00
nsLookAndFeel.h
nsNativeThemeAndroid.cpp Bug 1619664 - Decide which theme to use per document, not per-process. r=mstange,spohl 2020-03-03 19:46:41 +00:00
nsNativeThemeAndroid.h Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/android. r=snorp 2020-03-25 15:13:43 +00:00
nsPrintSettingsServiceAndroid.cpp
nsPrintSettingsServiceAndroid.h
nsWidgetFactory.cpp
nsWidgetFactory.h
nsWindow.cpp Backed out 30 changesets (bug 1556556, bug 1631568) for multiple mochitest failures. CLOSED TREE 2020-04-28 12:43:11 +03:00
nsWindow.h Bug 1619798 - Move GeckoView onLoadRequest calls to DocumentLoadListener.cpp r=snorp,mattwoodrow 2020-04-10 16:38:48 +00:00
PrefsHelper.h
ProcInfo.cpp
ScreenHelperAndroid.cpp
ScreenHelperAndroid.h
Telemetry.h
WebAuthnTokenManager.cpp
WebExecutorSupport.cpp Bug 1625213 - Make txt records be resolved with onLookupComplete r=dragana 2020-04-07 12:39:45 +00:00
WebExecutorSupport.h