Bug 1639833 - IntrisincStoragePrincipal should always be partitioned - part 2 - Expose PartitionedPrincipal, r=dimi

Differential Revision: https://phabricator.services.mozilla.com/D76915
This commit is contained in:
Andrea Marchesini
2020-06-02 08:28:05 +00:00
parent 30c4c09dc9
commit 88b78d701a
55 changed files with 370 additions and 344 deletions

View File

@@ -85,9 +85,10 @@ class nsDocShellLoadState final {
void SetPrincipalToInherit(nsIPrincipal* aPrincipalToInherit);
nsIPrincipal* StoragePrincipalToInherit() const;
nsIPrincipal* PartitionedPrincipalToInherit() const;
void SetStoragePrincipalToInherit(nsIPrincipal* aStoragePrincipalToInherit);
void SetPartitionedPrincipalToInherit(
nsIPrincipal* aPartitionedPrincipalToInherit);
bool LoadReplace() const;
@@ -332,7 +333,7 @@ class nsDocShellLoadState final {
nsCOMPtr<nsIPrincipal> mPrincipalToInherit;
nsCOMPtr<nsIPrincipal> mStoragePrincipalToInherit;
nsCOMPtr<nsIPrincipal> mPartitionedPrincipalToInherit;
// If this attribute is true, then a top-level navigation
// to a data URI will be allowed.