Bug 1580241 - Fix usage of nsIDocShellTreeItem in nsDocShell::CanSavePresentation r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D56003
This commit is contained in:
@@ -6896,9 +6896,7 @@ bool nsDocShell::CanSavePresentation(uint32_t aLoadType,
|
||||
}
|
||||
|
||||
// Don't cache the content viewer if we're in a subframe.
|
||||
nsCOMPtr<nsIDocShellTreeItem> root;
|
||||
GetInProcessSameTypeParent(getter_AddRefs(root));
|
||||
if (root && root != this) {
|
||||
if (mBrowsingContext->GetParent()) {
|
||||
return false; // this is a subframe load
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user