Bug 543831 - [OOPP] Hang with embedded youtube video. r=bent.

This commit is contained in:
Jim Mathies 2010-02-04 14:32:02 -06:00
Родитель 781556518e
Коммит eba8d4ec5c
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -897,7 +897,11 @@ PluginInstanceParent::PluginWindowHookProc(HWND hWnd,
switch (message) {
case WM_SETFOCUS:
self->CallSetPluginFocus();
// Widget may be calling us back from AnswerPluginGotFocus(), make
// sure we don't end up sending this back over. If we're not in
// SendMessage, this is coming from the dom / focus manager.
if ((::InSendMessageEx(NULL) & ISMEX_SEND|ISMEX_REPLIED) != ISMEX_SEND)
self->CallSetPluginFocus();
break;
case WM_CLOSE: