Bug 1703786 - Use nsILoadInfo.sandboxFlags instead r=valentin,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D112154
This commit is contained in:
Hubert Boma Manilla
2021-04-15 11:14:23 +00:00
parent 10496973e2
commit 0c8f91ed99
10 changed files with 4 additions and 48 deletions

View File

@@ -10100,10 +10100,6 @@ nsIPrincipal* nsDocShell::GetInheritedPrincipal(
}
}
if (httpChannelInternal && aBrowsingContext->GetSandboxFlags() != 0) {
httpChannelInternal->SetHasNonEmptySandboxingFlag(true);
}
nsCOMPtr<nsIURI> rpURI;
aLoadInfo->GetResultPrincipalURI(getter_AddRefs(rpURI));
Maybe<nsCOMPtr<nsIURI>> originalResultPrincipalURI;