Bug 1444143 part 2. Remove nsIFrameLoader::GetDocShell. r=mystor
The change from "docShell" to "mDocShell" for the SetName call in the OwnerIsMozBrowserFrame case in nsFrameLoader::MaybeCreateDocShell is a drive-by correctness fix for a bug the rename of "docShell" to "parentDocShell" caught: setting the name of our _parent_ docshell based on the name attr of our owner makes no sense. MozReview-Commit-ID: DwnWt8jTokV
This commit is contained in:
@@ -127,8 +127,7 @@ nsGenericHTMLFrameElement::GetContentWindow()
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDocShell> doc_shell;
|
||||
mFrameLoader->GetDocShell(getter_AddRefs(doc_shell));
|
||||
nsCOMPtr<nsIDocShell> doc_shell = mFrameLoader->GetDocShell(IgnoreErrors());
|
||||
if (!doc_shell) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user