зеркало из https://github.com/mozilla/gecko-dev.git
fix for 84560, intially focused url bar key bindings are broken. a=blizzard, r=jag, sr=hyatt
This commit is contained in:
Родитель
0f264bb26d
Коммит
5e97e47284
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче