Fix for 83642. r=jag, sr=blake, a=tor

This commit is contained in:
hyatt%netscape.com 2001-06-05 01:08:31 +00:00
Родитель 9a8cefc8f5
Коммит 96c68a8c35
2 изменённых файлов: 2 добавлений и 6 удалений

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

@ -2412,10 +2412,8 @@ static void CheckForFocus(nsPIDOMWindow* aOurWindow, nsIFocusController* aFocusC
if (domWindow == focusedWindow) {
PRBool active;
aFocusController->GetActive(&active);
aFocusController->SetFocusedElement(nsnull);
if(active) {
// We need to restore focus and make sure we null
// out the focused element.
// We need to restore focus to the window.
domWindow->Focus();
}
}

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

@ -2412,10 +2412,8 @@ static void CheckForFocus(nsPIDOMWindow* aOurWindow, nsIFocusController* aFocusC
if (domWindow == focusedWindow) {
PRBool active;
aFocusController->GetActive(&active);
aFocusController->SetFocusedElement(nsnull);
if(active) {
// We need to restore focus and make sure we null
// out the focused element.
// We need to restore focus to the window.
domWindow->Focus();
}
}