mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
Bug 351853, Crashes [@ nsFormFillController::GetDocShellForInput], adding a null check, r=dbaron
This commit is contained in:
parent
f162d5ee4d
commit
7e021d3aa8
@ -1083,7 +1083,7 @@ nsFormFillController::GetDocShellForInput(nsIDOMHTMLInputElement *aInput)
|
||||
nsCOMPtr<nsIDOMDocument> domDoc;
|
||||
aInput->GetOwnerDocument(getter_AddRefs(domDoc));
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryInterface(domDoc);
|
||||
|
||||
NS_ENSURE_TRUE(doc, nsnull);
|
||||
nsCOMPtr<nsIWebNavigation> webNav = do_GetInterface(doc->GetWindow());
|
||||
nsCOMPtr<nsIDocShell> docShell = do_QueryInterface(webNav);
|
||||
return docShell;
|
||||
|
Loading…
Reference in New Issue
Block a user