mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 541362 - [OOPP] hang closing tab with Yahoo web messenger loaded. r=bent.
--HG-- extra : rebase_source : 007df4403cc58cb02579723991827795e031f6bd
This commit is contained in:
parent
757c1b3d63
commit
877cceccfa
@ -688,6 +688,14 @@ PluginInstanceChild::PluginWindowProc(HWND hWnd,
|
||||
if (message == WM_MOUSEACTIVATE)
|
||||
self->CallPluginGotFocus();
|
||||
|
||||
// Prevent lockups due to plugins making rpc calls when the parent
|
||||
// is making a synchronous SetFocus api call. (bug 541362) Add more
|
||||
// windowing events as needed for other api.
|
||||
if (message == WM_KILLFOCUS &&
|
||||
((InSendMessageEx(NULL) & (ISMEX_REPLIED|ISMEX_SEND)) == ISMEX_SEND)) {
|
||||
ReplyMessage(0); // Unblock the caller
|
||||
}
|
||||
|
||||
LRESULT res = CallWindowProc(self->mPluginWndProc, hWnd, message, wParam,
|
||||
lParam);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user