gecko-dev/widget
Masayuki Nakano caa4d59b38 Bug 1302956 part.2 NativeKey shouldn't handle char message if it's created during another instance is trying to remove a char message from the queue r=m_kato
When NativeKey tries to remove a char message from the queue, another NativeKey instance might be created due to odd API hook or something.  In such case, the old instance should handle the received message and the new instance should do nothing for keeping the order of message handling.

This patch makes:

* NativeKey::GetFollowingCharMsg() store removing char message to mRemovingMsg before calling PeekMessage() with PM_REMOVE.
* NativeKey::InitWithChar() set the old instance's mReceivedMsg to the received char message and do nothing even if HandleCharMessage() is called later.
* NativeKey::GetFollowingCharMsg() return received char message if mReceivedMsg is set during a call of PeekMessage().

MozReview-Commit-ID: KXYW0GgC9AY

--HG--
extra : rebase_source : 08472dec28e93450cd04a367843c1511cb812a9c
2016-09-23 16:40:01 +09:00
..
android merge mozilla-inbound to mozilla-central a=merge 2016-09-23 12:05:53 +02:00
cocoa Bug 898984 - Part 2: Support surrogate pair in XUL cropped element. r=jfkthame 2013-08-11 03:41:00 +09:00
crashtests
gonk Bug 1301629 - Fix incorrect parameter name in comments. r=ettseng 2016-09-14 19:57:20 +02:00
gtk merge mozilla-inbound to mozilla-central a=merge 2016-09-19 12:14:36 +02:00
gtkxtbin Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
reftests Bug 1288350 - Temporary reftest list for Stylo vs Gecko test r=heycam,manishearth 2016-09-05 11:45:39 +08:00
tests Backed out changeset 6a8bf7596f42 (bug 1300937) for m-oth test failures 2016-09-15 17:04:33 +02:00
uikit Bug 1296993 (part 7) - Streamline nsIWidget::CaptureRollupEvents. r=mstange. 2016-08-25 13:43:27 +10:00
windows Bug 1302956 part.2 NativeKey shouldn't handle char message if it's created during another instance is trying to remove a char message from the queue r=m_kato 2016-09-23 16:40:01 +09:00
x11 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
xremoteclient Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
BasicEvents.h Bug 1297013 part.2 Implement some helper methods to log constants related to event handling r=smaug 2016-09-15 00:48:47 +09:00
CommandList.h
CompositorWidget.cpp Implement vsync notification for remote compositors. (bug 1285625 part 3, r=mchang) 2016-07-19 11:56:07 -07:00
CompositorWidget.h Backed out changeset c0285428a8a0 (bug 1289251) 2016-09-02 10:25:43 +02:00
ContentCache.cpp Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm. 2016-09-02 17:12:24 +10:00
ContentCache.h Bug 1291082 part.2 ContentCache::TextRectArray::IsOverlappingWith() shouldn't include end offset in its range r=m_kato 2016-08-16 16:07:54 +09:00
ContentEvents.h Bug 1259672 Rename InternalFormEvent::originator to mOriginator r=smaug 2016-08-03 17:06:10 +09:00
EventClassList.h
EventForwards.h Bug 1297013 part.2 Implement some helper methods to log constants related to event handling r=smaug 2016-09-15 00:48:47 +09:00
EventMessageList.h Backed out changeset c5cb27604f9f (bug 1206133) for timing out in notification tests of passwordmanager on Linux. r=backout 2016-08-18 19:58:44 +02:00
FontRange.h
GfxDriverInfo.cpp Backed out changeset cf43cacdb262 (bug 1294232) for XPCShell failures 2016-09-21 14:24:26 +08:00
GfxDriverInfo.h Backed out changeset cf43cacdb262 (bug 1294232) for XPCShell failures 2016-09-21 14:24:26 +08:00
GfxInfoBase.cpp Backed out changeset cf43cacdb262 (bug 1294232) for XPCShell failures 2016-09-21 14:24:26 +08:00
GfxInfoBase.h Backed out changeset cf43cacdb262 (bug 1294232) for XPCShell failures 2016-09-21 14:24:26 +08:00
GfxInfoCollector.cpp
GfxInfoCollector.h
GfxInfoWebGL.cpp
GfxInfoWebGL.h
GfxInfoX11.cpp Backed out changeset cf43cacdb262 (bug 1294232) for XPCShell failures 2016-09-21 14:24:26 +08:00
GfxInfoX11.h Backed out changeset cf43cacdb262 (bug 1294232) for XPCShell failures 2016-09-21 14:24:26 +08:00
IMEData.h Bug 1282669 Get rid of nsIMEUpdatePreference::DontNotifyChangesCausedByComposition() r=m_kato 2016-06-28 16:51:59 +09:00
InProcessCompositorWidget.cpp Don't expose CompositorVsyncDispatcher from CompositorWidget. (bug 1285625 part 2, r=mchang) 2016-07-19 11:56:07 -07:00
InProcessCompositorWidget.h Don't expose CompositorVsyncDispatcher from CompositorWidget. (bug 1285625 part 2, r=mchang) 2016-07-19 11:56:07 -07:00
InputData.cpp Bug 1298886 - Convert the PinchGestureInput span fields from float to ParentLayerCoord. r=botond 2016-09-24 09:46:01 -04:00
InputData.h Bug 1298886 - Convert the PinchGestureInput span fields from float to ParentLayerCoord. r=botond 2016-09-24 09:46:01 -04:00
LookAndFeel.h Bug 1302937 - Remove -moz-mac-lion-theme. r=mstange 2016-09-16 14:42:19 -04:00
LSBUtils.cpp Bug 1289561 - Implement LSB release annotation in crash reports. r=jrmuizel 2016-07-26 14:23:47 -04:00
LSBUtils.h Bug 1289561 - Implement LSB release annotation in crash reports. r=jrmuizel 2016-07-26 14:23:47 -04:00
MiscEvents.h
MouseEvents.h Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm. 2016-09-01 15:01:16 +10:00
moz.build Backed out changeset c0285428a8a0 (bug 1289251) 2016-09-02 10:25:43 +02:00
NativeKeyToDOMCodeName.h Bug 1285554 - Remove remnants of widget/qt. r=dougt,mshal. 2016-07-12 09:16:45 +10:00
NativeKeyToDOMKeyName.h Bug 1285554 - Remove remnants of widget/qt. r=dougt,mshal. 2016-07-12 09:16:45 +10:00
nsAppShellSingleton.h
nsBaseAppShell.cpp
nsBaseAppShell.h
nsBaseClipboard.cpp Bug 1261299 - Implement nsIClipboard methods in nsClipboard.mm with methods specific for osx. (EmptyClipboard, SetData) methods modified from nsBaseClipboard to also set the current selection cache. r=jimm 2016-08-11 16:43:32 -04:00
nsBaseClipboard.h Bug 1261299 - Implement nsIClipboard methods in nsClipboard.mm with methods specific for osx. (EmptyClipboard, SetData) methods modified from nsBaseClipboard to also set the current selection cache. r=jimm 2016-08-11 16:43:32 -04:00
nsBaseDragService.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsBaseDragService.h Backed out changeset 36e71bcb0266 (bug 1192945) 2016-06-10 02:24:08 -04:00
nsBaseFilePicker.cpp Bug 1295914, improve the label of the button of folder picker, r=baku,mstange,karlt,jimm 2016-08-24 02:07:21 +03:00
nsBaseFilePicker.h Bug 1295914, improve the label of the button of folder picker, r=baku,mstange,karlt,jimm 2016-08-24 02:07:21 +03:00
nsBaseScreen.cpp
nsBaseScreen.h
nsBaseWidget.cpp Recreate widget compositors when the GPU process dies. (bug 1300936 part 2, r=mattwoodrow) 2016-09-20 01:16:03 -07:00
nsBaseWidget.h Recreate widget compositors when the GPU process dies. (bug 1300936 part 2, r=mattwoodrow) 2016-09-20 01:16:03 -07:00
nsClipboardHelper.cpp
nsClipboardHelper.h
nsClipboardProxy.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsClipboardProxy.h
nsColorPickerProxy.cpp
nsColorPickerProxy.h
nsContentProcessWidgetFactory.cpp Bug 825294 - Add framework for datepicker widgets to input[type=date]. r=smaug 2016-06-20 15:55:00 +02:00
nsDatePickerProxy.cpp Bug 825294 - Add framework for datepicker widgets to input[type=date]. r=smaug 2016-06-20 15:55:00 +02:00
nsDatePickerProxy.h Bug 825294 - Add framework for datepicker widgets to input[type=date]. r=smaug 2016-06-20 15:55:00 +02:00
nsDeviceContextSpecProxy.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsDeviceContextSpecProxy.h Bug 1293117 (part 5) - Change many NS_METHOD occurrences to NS_IMETHOD. r=froydnj. 2016-08-08 10:54:50 +10:00
nsDragServiceProxy.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsDragServiceProxy.h
nsFilePickerProxy.cpp Bug 1295914, improve the label of the button of folder picker, r=baku,mstange,karlt,jimm 2016-08-24 02:07:21 +03:00
nsFilePickerProxy.h Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj. 2016-08-08 10:54:47 +10:00
nsGUIEventIPC.h Bug 1258808 - Part 1: Passing PointerId (Gecko). r=smaug, f=btseng 2016-09-01 16:12:15 +08:00
nsHTMLFormatConverter.cpp
nsHTMLFormatConverter.h
nsIApplicationChooser.idl
nsIAppShell.idl
nsIBaseWindow.idl
nsIBidiKeyboard.idl
nsIClipboard.idl Bug 1261299 - Add new clipboard kSelectionCache to cache the current selection for OSX service menu. Add a constructor to nsAutoCopyListener which sets the clipboard to copy to. Pass in kSelectionCache for OSX or kSelectionClipboard for linux. r=mstange 2016-06-03 12:04:22 -04:00
nsIClipboardDragDropHookList.idl
nsIClipboardDragDropHooks.idl
nsIClipboardHelper.idl
nsIClipboardOwner.idl
nsIColorPicker.idl
nsIDatePicker.idl Bug 825294 - Add framework for datepicker widgets to input[type=date]. r=smaug 2016-06-20 15:55:00 +02:00
nsIDeviceContextSpec.h Bug 1279628, part 2 - Switch all but one of the gfxASurface::CheckSurfaceSize calls to call Factory::CheckSurfaceSize. r=mstange 2016-06-10 13:32:01 +01:00
nsIDisplayInfo.idl
nsIdleService.cpp Bug 1281793 - part 7 - Remove some non-used telemetry IDs - widget directory, r=gfritzsche 2016-07-04 17:11:52 +02:00
nsIdleService.h
nsIDragService.idl Backed out changeset 36e71bcb0266 (bug 1192945) 2016-06-10 02:24:08 -04:00
nsIDragSession.idl
nsIFilePicker.idl Bug 1295914, improve the label of the button of folder picker, r=baku,mstange,karlt,jimm 2016-08-24 02:07:21 +03:00
nsIFormatConverter.idl
nsIGfxInfo.idl Bug 1302240 - Report content backend to telemetry. r=dvander 2016-09-12 16:23:28 -07:00
nsIGfxInfoDebug.idl
nsIIdleService.idl
nsIIdleServiceInternal.idl
nsIJumpListBuilder.idl
nsIJumpListItem.idl
nsIKeyEventInPluginCallback.h
nsIMacDockSupport.idl
nsIMacWebAppUtils.idl
nsINativeMenuService.h
nsIPluginWidget.h
nsIPrintDialogService.h
nsIPrintOptions.idl
nsIPrintSession.idl
nsIPrintSettings.idl
nsIPrintSettingsService.idl
nsIPrintSettingsWin.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 Bug 664717 - Part 1: Switch to requestingPrincipal in nsITransferable. r=ckerschb 2016-07-01 16:01:11 +08:00
nsIWidget.h Bug 1260850: Ensure that FilePicker (and other native app modal dialogs) on OSX remains responsive when a window modal dialog opens in the background. r=mstange 2016-09-08 15:41:55 -04:00
nsIWidgetListener.cpp
nsIWidgetListener.h
nsIWindowsUIUtils.idl
nsIWinTaskbar.idl
nsNativeTheme.cpp Bug 1293596 (part 2) - Rework nsIWidget bounds getters. r=mstange. 2016-08-19 09:03:04 +10:00
nsNativeTheme.h
nsPrimitiveHelpers.cpp
nsPrimitiveHelpers.h
nsPrintOptionsImpl.cpp Backed out changeset 2bea1e1e403d (bug 1265386) for bustage on a CLOSED TREE 2016-07-21 13:59:02 +02:00
nsPrintOptionsImpl.h
nsPrintSession.cpp
nsPrintSession.h
nsPrintSettingsImpl.cpp
nsPrintSettingsImpl.h
nsScreenManagerProxy.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsScreenManagerProxy.h
nsShmImage.cpp Backed out changeset 2467398cd958 (bug 1289251) for build bustage in WindowSurfaceX11.cpp. r=backout 2016-09-02 10:26:14 +02:00
nsShmImage.h Bug 1287666 - Avoid a round trip to the X server in nsShmImage::CreateDrawTarget. r=lsalzman 2016-07-21 13:41:09 -04:00
nsTransferable.cpp Bug 1296164 (part 1) - Use [must_use] on nsIFile.{create,createUnique}. r=froydnj. 2016-08-18 13:30:12 +10:00
nsTransferable.h Bug 664717 - Part 1: Switch to requestingPrincipal in nsITransferable. r=ckerschb 2016-07-01 16:01:11 +08:00
nsWidgetInitData.h
nsWidgetsCID.h Bug 825294 - Add framework for datepicker widgets to input[type=date]. r=smaug 2016-06-20 15:55:00 +02:00
nsXPLookAndFeel.cpp Bug 1288077: Whitespace fixes, r=froydnj 2016-07-20 17:29:36 +02:00
nsXPLookAndFeel.h Bug 384458 - part 1: make the background color of the SELECTION_ATTENTION range fully transparent when modal highlighting is on. r=masayuki 2016-06-09 13:30:44 +02:00
PCompositorWidget.ipdl Implement vsync notification for remote compositors. (bug 1285625 part 3, r=mchang) 2016-07-19 11:56:07 -07:00
PlatformWidgetTypes.ipdlh Move CompositorWidget construction out of nsIWidget. (bug 1281998 part 5, r=jimm) 2016-07-01 01:15:16 -07:00
PluginWidgetProxy.cpp Bug 1293596 (part 4) - Tweak nsIWidget::Create. r=mstange. 2016-08-19 09:03:17 +10:00
PluginWidgetProxy.h Bug 1293596 (part 4) - Tweak nsIWidget::Create. r=mstange. 2016-08-19 09:03:17 +10:00
PuppetBidiKeyboard.cpp Bug 1257731 - Part 1. Send HaveBidiKeyboards information to content process. r=masayuki 2016-06-03 18:56:04 +09:00
PuppetBidiKeyboard.h Bug 1257731 - Part 1. Send HaveBidiKeyboards information to content process. r=masayuki 2016-06-03 18:56:04 +09:00
PuppetWidget.cpp Recreate PLayerTransactions for TabChildren when the compositor restarts. (bug 1300936 part 4, r=mattwoodrow, r=billm) 2016-09-20 01:19:32 -07:00
PuppetWidget.h Recreate PLayerTransactions for TabChildren when the compositor restarts. (bug 1300936 part 4, r=mattwoodrow, r=billm) 2016-09-20 01:19:32 -07:00
ScreenProxy.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
ScreenProxy.h Bug 1288760 patch 2.3 - Support GetContentsScaleFactor and GetDefaultCSSScaleFactor in ScreenProxy. r=emk 2016-08-18 08:31:31 +01:00
SharedWidgetUtils.cpp
SystemTimeConverter.h
TextEventDispatcher.cpp
TextEventDispatcher.h Bug 1224994 part.5 Implement TSFTextStore::IsComposingInContent() to check if the focused editor has composition r=m_kato 2016-06-29 17:39:59 +09:00
TextEventDispatcherListener.h
TextEvents.h Bug 1297013 part.2 Implement some helper methods to log constants related to event handling r=smaug 2016-09-15 00:48:47 +09:00
TextRange.h Bug 1275914 part.8 TextComposition should always update its composition start offset during composing r=smaug 2016-06-20 16:34:40 +09:00
TouchEvents.h
VsyncDispatcher.cpp Implement vsync notification for remote compositors. (bug 1285625 part 3, r=mchang) 2016-07-19 11:56:07 -07:00
VsyncDispatcher.h Implement vsync notification for remote compositors. (bug 1285625 part 3, r=mchang) 2016-07-19 11:56:07 -07:00
WidgetEventImpl.cpp Fix root scroll delta overrides when APZ is out-of-process. (bug 1303820, r=kats) 2016-09-19 19:22:26 -07:00
WidgetMessageUtils.h
WidgetTraceEvent.h
WidgetUtils.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
WidgetUtils.h
WindowSurface.h Bug 1285561 - Refactor surface blitting on X11. r=jrmuizel 2016-07-14 10:11:46 -04:00
WindowSurfaceX11SHM.cpp Bug 1285561 - Refactor surface blitting on X11. r=jrmuizel 2016-07-14 10:11:46 -04:00
WindowSurfaceX11SHM.h Bug 1285561 - Refactor surface blitting on X11. r=jrmuizel 2016-07-14 10:11:46 -04:00