зеркало из https://github.com/mozilla/pjs.git
Bug 658741 - Backout of focus related changes in bug 648935 due to plugin hang issues. r=bsmedberg
This commit is contained in:
Родитель
37bbd69207
Коммит
6cc1a20b38
|
@ -96,7 +96,6 @@ PluginInstanceParent::PluginInstanceParent(PluginModuleParent* parent,
|
|||
, mPluginHWND(NULL)
|
||||
, mPluginWndProc(NULL)
|
||||
, mNestedEventState(false)
|
||||
, mInAnswerFocusChange(false)
|
||||
#endif // defined(XP_WIN)
|
||||
, mQuirks(0)
|
||||
#if defined(XP_MACOSX)
|
||||
|
@ -1560,8 +1559,7 @@ PluginInstanceParent::PluginWindowHookProc(HWND hWnd,
|
|||
switch (message) {
|
||||
case WM_SETFOCUS:
|
||||
// Let the child plugin window know it should take focus.
|
||||
if (!self->mInAnswerFocusChange)
|
||||
self->CallSetPluginFocus();
|
||||
self->CallSetPluginFocus();
|
||||
break;
|
||||
|
||||
case WM_CLOSE:
|
||||
|
@ -1741,8 +1739,6 @@ PluginInstanceParent::AnswerPluginFocusChange(const bool& gotFocus)
|
|||
// focus. We forward the event down to widget so the dom/focus manager can
|
||||
// be updated.
|
||||
#if defined(OS_WIN)
|
||||
AutoRestore<bool> ar(mInAnswerFocusChange);
|
||||
mInAnswerFocusChange = true;
|
||||
::SendMessage(mPluginHWND, gOOPPPluginFocusEvent, gotFocus ? 1 : 0, 0);
|
||||
return true;
|
||||
#else
|
||||
|
|
|
@ -349,7 +349,6 @@ private:
|
|||
HWND mPluginHWND;
|
||||
WNDPROC mPluginWndProc;
|
||||
bool mNestedEventState;
|
||||
bool mInAnswerFocusChange;
|
||||
#endif // defined(XP_WIN)
|
||||
#if defined(OS_MACOSX)
|
||||
private:
|
||||
|
|
Загрузка…
Ссылка в новой задаче