gecko-dev/widget
Masayuki Nakano 96d0076840 Bug 1341960 TextInputHandler shouldn't ignore InsertText() calls even if TextInputHandler has already dispatched keypress events and/or composition events for the key down but InsertText() is called again for inserting printable text r=m_kato
Korean IME and some other simple IME may not use marked text at composing text.  Such IME modifies composing character with InsertText() with aReplacementRange.  Then, when
 user types new character, such IME may replace the previous character with a call of InsertText() with aReplacementRange and insert the next character with additional call of InsertText() without aReplacementRange.

In this case, InsertText() ignores the call when the native keydown event is already caused composition events.  However, we need to allow to dispatch keypress event for supporting to insert text even in such case.

This patch checks if inserting text is printable.  If it's not a printable character such as U+000A at pressing Enter, keeping current behavior.  Otherwise, dispatching keypress event instead.

MozReview-Commit-ID: 5NcCgXfvniO

--HG--
extra : rebase_source : f05db8655d623880cb658cef144d1e9fcdce8a2a
2017-02-23 11:45:13 +09:00
..
android Bug 1322576 - [5.3] Make GeckoView settings accessible through nsIAndroidView. r=jchen 2017-02-22 14:57:42 +01:00
cocoa Bug 1341960 TextInputHandler shouldn't ignore InsertText() calls even if TextInputHandler has already dispatched keypress events and/or composition events for the key down but InsertText() is called again for inserting printable text r=m_kato 2017-02-23 11:45:13 +09:00
crashtests
gonk Bug 1325234 (part 10) - Final nsIWidget deCOMtamination clean-ups. r=mstange. 2016-12-21 15:58:09 +11:00
gtk Bug 1341296 - Move mozcontainer.c to cpp file, r=karlt 2017-02-22 09:49:54 +01:00
gtkxtbin
reftests Bug 1341988. Reenable a bunch of stylo reftests that were disabled for reasons that are not relevant anymore. r=bz 2017-02-23 02:09:57 -05:00
tests Merge m-c to inbound, a=merge 2017-01-27 16:39:29 -08:00
uikit Bug 1325234 (part 10) - Final nsIWidget deCOMtamination clean-ups. r=mstange. 2016-12-21 15:58:09 +11:00
windows Merge m-c to autoland, a=merge 2017-02-23 16:59:01 -08:00
x11
xremoteclient Bug 1060419 - make log_print use Printf.h, r=froydnj 2016-12-15 20:16:31 -07:00
BasicEvents.h Bug 1332191 Move CrossProcessSafeEvent() in EventStateManager.cpp to WidgetEvent::CanBeSentToRemoteProcess() r=smaug 2017-01-19 16:46:59 +09:00
CommandList.h
CompositorWidget.cpp Bug 1330037 - Propagate the CompositorOptions to all CompositorWidget instances. r=dvander 2017-01-12 17:29:42 -05:00
CompositorWidget.h Merge m-c to graphics 2017-01-13 10:14:22 -06:00
ContentCache.cpp Bug 1060419 - make log_print use Printf.h, r=froydnj 2016-12-15 20:16:31 -07:00
ContentCache.h
ContentEvents.h
EventClassList.h Bug 1322736 part.3 Remove dom::BeforeAfterKeyboardEvent and InternalBeforeAfterKeyboardEvent r=smaug 2016-12-16 16:25:22 +09:00
EventForwards.h
EventMessageList.h Bug 1327798 - Part 1. PasteNoFormatting shouldn't set text/html to clipboard event on paste. r=enndeakin 2017-02-22 18:34:45 +09:00
FontRange.h
GfxDriverInfo.cpp
GfxDriverInfo.h
GfxInfoBase.cpp Merge m-c to graphics 2017-01-27 10:07:37 -06:00
GfxInfoBase.h Allow controlling the GPU process from xpcshell. (bug 1321492 part 8, r=mattwoodrow) 2017-01-26 16:35:55 -08:00
GfxInfoCollector.cpp
GfxInfoCollector.h
GfxInfoWebGL.cpp
GfxInfoWebGL.h
GfxInfoX11.cpp
GfxInfoX11.h
IMEData.h
InProcessCompositorWidget.cpp Bug 1330037 - Propagate the CompositorOptions to all CompositorWidget instances. r=dvander 2017-01-12 17:29:42 -05:00
InProcessCompositorWidget.h Bug 1329362 - part 2, Add accessor functions for EGLNativeWindowType, ANativeWindow, and EGLSurface to AndroidCompositorWidget r=dvander,kats 2017-01-27 09:32:24 -08:00
InputData.cpp
InputData.h
LSBUtils.cpp
LSBUtils.h
LookAndFeel.h Bug 1325368 - Assume Win7 or later when testing Windows version. r=jimm 2017-01-29 16:42:46 +09:00
MiscEvents.h
MouseEvents.h Bug 1323976 - Part 1: Add eNoButton to WidgetMouseEventBase::buttonType. r=smaug 2017-01-12 17:53:38 +08:00
NativeKeyToDOMCodeName.h
NativeKeyToDOMKeyName.h Bug 1339509 Map ISO_Left_Tab to DOM Tab key r=karlt 2017-02-17 16:47:35 +09:00
PCompositorWidget.ipdl
PlatformWidgetTypes.ipdlh
PluginWidgetProxy.cpp Bug 1325234 (part 4) - Streamline nsIWidget::{SetFocus,SetNonClientMargins}(). r=mstange. 2016-12-21 11:13:08 +11:00
PluginWidgetProxy.h Bug 1325234 (part 4) - Streamline nsIWidget::{SetFocus,SetNonClientMargins}(). r=mstange. 2016-12-21 11:13:08 +11:00
PuppetBidiKeyboard.cpp
PuppetBidiKeyboard.h
PuppetWidget.cpp Bug 1338890 - Cache our tab behaviour instead of requesting it each time on a hot path r=smaug 2017-02-17 14:21:28 -05:00
PuppetWidget.h Bug 1325234 (part 9) - Remove remaining NS_IMETHOD_ occurrences from nsIWidget. r=mstange. 2016-12-21 15:27:20 +11:00
ScreenProxy.cpp
ScreenProxy.h
SharedWidgetUtils.cpp
SystemTimeConverter.h
TextEventDispatcher.cpp
TextEventDispatcher.h
TextEventDispatcherListener.h
TextEvents.h Bug 1337739 Create an enum eKeyLocation* for avoiding to use nsIDOMKeyEvent::DOM_KEY_LOCATION_* r=smaug 2017-02-08 21:04:22 +09:00
TextRange.h
TouchEvents.h
VsyncDispatcher.cpp Bug 1333296 (part 1) - Rename MOZ_ENABLE_PROFILER_SPS as MOZ_GECKO_PROFILER. r=mstange,glandium. 2017-01-24 14:15:12 +11:00
VsyncDispatcher.h
WidgetEventImpl.cpp Bug 1337739 Create an enum eKeyLocation* for avoiding to use nsIDOMKeyEvent::DOM_KEY_LOCATION_* r=smaug 2017-02-08 21:04:22 +09:00
WidgetMessageUtils.h
WidgetTraceEvent.h
WidgetUtils.cpp
WidgetUtils.h
WindowSurface.h Bug 1319554 - allow WindowSurfaceX11Image to render to any visual format. r=rhunt 2016-12-01 12:15:58 -05:00
WindowSurfaceX11SHM.cpp
WindowSurfaceX11SHM.h
moz.build Bug 1331236 - Make nsPrintingPromptServiceX.mm cpp file instead of Objective-C++. r=mstange 2017-01-15 16:47:36 +09:00
nsAppShellSingleton.h
nsBaseAppShell.cpp Bug 1331804 - Add more runnable names (r=ehsan) 2017-01-24 16:34:37 -08:00
nsBaseAppShell.h
nsBaseClipboard.cpp
nsBaseClipboard.h
nsBaseDragService.cpp Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
nsBaseDragService.h
nsBaseFilePicker.cpp
nsBaseFilePicker.h
nsBaseScreen.cpp
nsBaseScreen.h
nsBaseWidget.cpp Bug 1340510 - Fix nsBaseWidget::RevokeTransactionIdAllocator() r=nical 2017-02-20 10:57:06 +09:00
nsBaseWidget.h Bug 1328066 - Don't broadcast the live-resize events to all browser windows unnecessarily. r=mstange 2017-02-01 10:38:16 -05:00
nsClipboardHelper.cpp
nsClipboardHelper.h
nsClipboardProxy.cpp
nsClipboardProxy.h
nsColorPickerProxy.cpp
nsColorPickerProxy.h
nsContentProcessWidgetFactory.cpp
nsDatePickerProxy.cpp
nsDatePickerProxy.h
nsDeviceContextSpecProxy.cpp Bug 1324064: Stop accessing printer devices in the child when printing via parent. r=jimm 2017-01-06 11:29:11 +00:00
nsDeviceContextSpecProxy.h Backed out changeset a4b0052954d2 (bug 1279699) for causing various crash regressions. 2016-12-01 15:25:25 -05:00
nsDragServiceProxy.cpp
nsDragServiceProxy.h
nsFilePickerProxy.cpp Bug 1331820 - Fix misuse of NS_NewNativeLocalFile in nsFilePickerProxy.cpp. r=baku 2017-01-21 15:46:44 +09:00
nsFilePickerProxy.h
nsGUIEventIPC.h Bug 1322736 part.3 Remove dom::BeforeAfterKeyboardEvent and InternalBeforeAfterKeyboardEvent r=smaug 2016-12-16 16:25:22 +09:00
nsHTMLFormatConverter.cpp
nsHTMLFormatConverter.h
nsIAppShell.idl
nsIApplicationChooser.idl
nsIBaseWindow.idl
nsIBidiKeyboard.idl
nsIClipboard.idl
nsIClipboardDragDropHookList.idl
nsIClipboardDragDropHooks.idl
nsIClipboardHelper.idl
nsIClipboardOwner.idl
nsIColorPicker.idl
nsIDatePicker.idl
nsIDeviceContextSpec.h
nsIDisplayInfo.idl
nsIDragService.idl
nsIDragSession.idl Bug 1309596, add an updateDragImage method to modify the drag feedback image during the drag, r=smaug 2016-12-23 18:09:44 -05:00
nsIFilePicker.idl Backed out changeset d0a0da23ac05 (bug 1334975) for frequent failures of test_chrome_ext_downloads_saveAs.html. r=backout 2017-02-21 17:54:27 +01:00
nsIFormatConverter.idl
nsIGfxInfo.idl Allow controlling the GPU process from xpcshell. (bug 1321492 part 8, r=mattwoodrow) 2017-01-26 16:35:55 -08:00
nsIGfxInfoDebug.idl
nsIIdleService.idl
nsIIdleServiceInternal.idl
nsIJumpListBuilder.idl
nsIJumpListItem.idl
nsIKeyEventInPluginCallback.h
nsIMacDockSupport.idl
nsIMacWebAppUtils.idl
nsINativeMenuService.h
nsIPluginWidget.h
nsIPrintDialogService.h
nsIPrintSession.idl
nsIPrintSettings.idl
nsIPrintSettingsService.idl
nsIPrintSettingsWin.idl
nsIPrinterEnumerator.idl
nsIRollupListener.h
nsIScreen.idl
nsIScreenManager.idl
nsISound.idl
nsIStandaloneNativeMenu.idl
nsISystemStatusBar.idl
nsITaskbarOverlayIconController.idl
nsITaskbarPreview.idl
nsITaskbarPreviewButton.idl
nsITaskbarPreviewController.idl
nsITaskbarProgress.idl
nsITaskbarTabPreview.idl
nsITaskbarWindowPreview.idl
nsITransferable.idl
nsIWidget.h Bug 1325234 (part 9) - Remove remaining NS_IMETHOD_ occurrences from nsIWidget. r=mstange. 2016-12-21 15:27:20 +11:00
nsIWidgetListener.cpp
nsIWidgetListener.h
nsIWinTaskbar.idl
nsIWindowsUIUtils.idl
nsIdleService.cpp Bug 1060419 - make log_print use Printf.h, r=froydnj 2016-12-15 20:16:31 -07:00
nsIdleService.h
nsNativeTheme.cpp Bug 1335337 - Restrict special <button type="menu"> theming to XUL <button> elements. r=Enn 2017-02-10 13:20:19 -05:00
nsNativeTheme.h
nsPrimitiveHelpers.cpp
nsPrimitiveHelpers.h
nsPrintOptionsImpl.cpp Bug 1324064: Stop accessing printer devices in the child when printing via parent. r=jimm 2017-01-06 11:29:11 +00:00
nsPrintOptionsImpl.h
nsPrintSession.cpp
nsPrintSession.h
nsPrintSettingsImpl.cpp
nsPrintSettingsImpl.h
nsScreenManagerProxy.cpp
nsScreenManagerProxy.h
nsShmImage.cpp Bug 1321129 - make nsShmImage stride compatible with XShm. r=karlt 2017-02-21 10:00:52 -05:00
nsShmImage.h Bug 1321129 - make nsShmImage stride compatible with XShm. r=karlt 2017-02-21 10:00:52 -05:00
nsTransferable.cpp
nsTransferable.h
nsWidgetInitData.h
nsWidgetsCID.h
nsXPLookAndFeel.cpp
nsXPLookAndFeel.h