зеркало из https://github.com/mozilla/pjs.git
Bug 351853, Crashes [@ nsFormFillController::GetDocShellForInput], adding a null check, r=dbaron
This commit is contained in:
Родитель
7b3d89c5d5
Коммит
4b3a92d985
|
@ -219,6 +219,7 @@ nsFormFillController::SetPopupOpen(PRBool aPopupOpen)
|
|||
if (aPopupOpen) {
|
||||
// make sure input field is visible before showing popup (bug 320938)
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(mFocusedInput);
|
||||
NS_ENSURE_STATE(content);
|
||||
nsCOMPtr<nsIDocShell> docShell = GetDocShellForInput(mFocusedInput);
|
||||
NS_ENSURE_STATE(docShell);
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
|
|
Загрузка…
Ссылка в новой задаче