Bug 502123 - Switching focus out of a windowed plugin raises the toplevel window. r=mozbugs.

This commit is contained in:
Neil Deakin 2009-09-26 21:05:34 -05:00
Родитель a93e05aa6e
Коммит 44bdfce85e
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -957,7 +957,7 @@ nsFocusManager::EnsureCurrentWidgetFocused()
nsCOMPtr<nsIWidget> widget;
vm->GetRootWidget(getter_AddRefs(widget));
if (widget)
widget->SetFocus(PR_TRUE);
widget->SetFocus(PR_FALSE);
}
}
}
@ -1371,7 +1371,7 @@ nsFocusManager::Blur(nsPIDOMWindow* aWindowToClear,
nsCOMPtr<nsIWidget> widget;
vm->GetRootWidget(getter_AddRefs(widget));
if (widget)
widget->SetFocus(PR_TRUE);
widget->SetFocus(PR_FALSE);
}
}
}
@ -1518,7 +1518,7 @@ nsFocusManager::Focus(nsPIDOMWindow* aWindow,
nsCOMPtr<nsIWidget> widget;
vm->GetRootWidget(getter_AddRefs(widget));
if (widget)
widget->SetFocus(PR_TRUE);
widget->SetFocus(PR_FALSE);
}
// if switching to a new document, first fire the focus event on the
@ -1560,7 +1560,7 @@ nsFocusManager::Focus(nsPIDOMWindow* aWindow,
if (objectFrame) {
nsIWidget* widget = objectFrame->GetWidget();
if (widget)
widget->SetFocus(PR_TRUE);
widget->SetFocus(PR_FALSE);
}
nsIMEStateManager::OnChangeFocus(presContext, aContent);