Bug 1762462 - Make tests in docshell/test/navigation/ reflect Always Partitioning Storage; r=smaug

Depends on D148046

Differential Revision: https://phabricator.services.mozilla.com/D148047
This commit is contained in:
Thomas Wisniewski
2022-07-14 19:26:27 +00:00
parent d52e9fd267
commit 5e2e431bed
2 changed files with 10 additions and 2 deletions

View File

@@ -76,7 +76,11 @@
SpecialPowers.wrap(document).notifyUserGestureActivation();
SpecialPowers.addPermission("storageAccessAPI", true, window.location.href).then(() => {
SpecialPowers.wrap(document).requestStorageAccess().then(() => {
executeTest();
SpecialPowers.pushPrefEnv({
set: [["privacy.partition.always_partition_third_party_non_cookie_storage", false]]
}).then(() => {
executeTest();
});
});
});
} else {

View File

@@ -278,7 +278,11 @@ if (isXOrigin) {
SpecialPowers.wrap(document).notifyUserGestureActivation();
SpecialPowers.addPermission("storageAccessAPI", true, window.location.href).then(() => {
SpecialPowers.wrap(document).requestStorageAccess().then(() => {
executeTest();
SpecialPowers.pushPrefEnv({
set: [["privacy.partition.always_partition_third_party_non_cookie_storage", false]]
}).then(() => {
executeTest();
});
});
});
} else {