Bug 1580228 - Fix usage of nsIDocShellTreeItem in nsDocShell::EndPageLoad r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D54604
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user