mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 16:03:21 +00:00
Bug 1301488 - Remove an unneeded null check from nsWebShellWindow::Initialize; r=bzbarsky
mDocShell is being checked before this part in the same function.
This commit is contained in:
parent
4a5470e722
commit
8ca93a6416
@ -224,7 +224,7 @@ nsresult nsWebShellWindow::Initialize(nsIXULWindow* aParent,
|
||||
}
|
||||
rv = mDocShell->CreateAboutBlankContentViewer(principal);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
nsCOMPtr<nsIDocument> doc = mDocShell ? mDocShell->GetDocument() : nullptr;
|
||||
nsCOMPtr<nsIDocument> doc = mDocShell->GetDocument();
|
||||
NS_ENSURE_TRUE(!!doc, NS_ERROR_FAILURE);
|
||||
doc->SetIsInitialDocument(true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user