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

git-svn-id: svn://10.0.0.236/trunk@96393 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2001-06-05 01:08:31 +00:00
parent 14c3594b31
commit 6ce653cd9d
2 changed files with 2 additions and 6 deletions

View File

@@ -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();
}
}