mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
Bug 555463 - Deal with sync wm_setfocus events from child. r=enn.
This commit is contained in:
parent
8cbfc7ec64
commit
5f9f30a06d
@ -3797,9 +3797,9 @@ nsWindow::IPCWindowProcHandler(UINT& msg, WPARAM& wParam, LPARAM& lParam)
|
||||
// Handle certain sync plugin events sent to the parent which
|
||||
// trigger ipc calls that result in deadlocks.
|
||||
|
||||
// Windowed plugins receiving focus triggering WM_ACTIVATE app messages.
|
||||
if (mWindowType == eWindowType_plugin && msg == WM_SETFOCUS &&
|
||||
GetPropW(mWnd, L"PluginInstanceParentProperty")) {
|
||||
// Plugins taking focus triggering WM_SETFOCUS app messages.
|
||||
if (msg == WM_SETFOCUS &&
|
||||
(InSendMessageEx(NULL)&(ISMEX_REPLIED|ISMEX_SEND)) == ISMEX_SEND) {
|
||||
ReplyMessage(0);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user