fix for 84560, intially focused url bar key bindings are broken. a=blizzard, r=jag, sr=hyatt

This commit is contained in:
saari%netscape.com 2001-06-14 03:49:07 +00:00
Родитель 0f264bb26d
Коммит 5e97e47284
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -3913,7 +3913,11 @@ nsDocShell::SetupNewViewer(nsIContentViewer * aNewViewer)
focusController->SetSuppressFocus(PR_TRUE,
"Win32-Only Link Traversal Issue");
// Remove focus from the element that has it
focusController->SetFocusedElement(nsnull);
nsCOMPtr<nsIDOMWindowInternal> focusedWindow;
focusController->GetFocusedWindow(getter_AddRefs(focusedWindow));
nsCOMPtr<nsIDOMWindowInternal> ourFocusedWindow(do_QueryInterface(ourWindow));
if (ourFocusedWindow == focusedWindow)
focusController->SetFocusedElement(nsnull);
}
}