Bug 1580228 - Fix usage of nsIDocShellTreeItem in nsDocShell::EndPageLoad r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D54604
This commit is contained in:
Kannan Vijayan
2019-11-25 21:55:48 +00:00
parent fb4527f30f
commit a7f07ec178
2 changed files with 5 additions and 7 deletions

View File

@@ -6333,12 +6333,7 @@ nsresult nsDocShell::EndPageLoad(nsIWebProgress* aProgress,
RefreshURIFromQueue();
// Test whether this is the top frame or a subframe
bool isTopFrame = true;
nsCOMPtr<nsIDocShellTreeItem> targetParentTreeItem;
rv = GetInProcessSameTypeParent(getter_AddRefs(targetParentTreeItem));
if (NS_SUCCEEDED(rv) && targetParentTreeItem) {
isTopFrame = false;
}
bool isTopFrame = !mBrowsingContext->GetParent();
//
// If the page load failed, then deal with the error condition...