зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1168398 - Ensure that the presshell is initialized before attempting to scroll something into its view; r=enndeakin
This commit is contained in:
Родитель
b73f093357
Коммит
2eb09d4da3
|
@ -1343,7 +1343,7 @@ nsFocusManager::SetFocusInner(nsIContent* aNewContent, int32_t aFlags,
|
|||
nsCOMPtr<nsIDocShell> docShell = newWindow->GetDocShell();
|
||||
|
||||
nsCOMPtr<nsIPresShell> presShell = docShell->GetPresShell();
|
||||
if (presShell)
|
||||
if (presShell && presShell->DidInitialize())
|
||||
ScrollIntoView(presShell, contentToFocus, aFlags);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче