diff --git a/dom/workers/test/test_multi_sharedWorker_lifetimes_bfcache.html b/dom/workers/test/test_multi_sharedWorker_lifetimes_bfcache.html index 5909d0cfda25..346950020f8a 100644 --- a/dom/workers/test/test_multi_sharedWorker_lifetimes_bfcache.html +++ b/dom/workers/test/test_multi_sharedWorker_lifetimes_bfcache.html @@ -127,7 +127,10 @@ SpecialPowers.pushPermissions([{'type': 'storageAccessAPI', 'allow': 1, 'context': document}], () =>{ SpecialPowers.wrap(document).requestStorageAccess().then(() => { // If Fission is disabled, the pref is no-op. - SpecialPowers.pushPrefEnv({set: [["fission.bfcacheInParent", true]]}, () => { + SpecialPowers.pushPrefEnv({set: [ + ["fission.bfcacheInParent", true], + ["privacy.partition.always_partition_third_party_non_cookie_storage", false], + ]}, () => { testGenerator.next(); }); }).then(() => { diff --git a/dom/workers/test/test_multi_sharedWorker_lifetimes_nobfcache.html b/dom/workers/test/test_multi_sharedWorker_lifetimes_nobfcache.html index 65b66a12d9c2..5049ead1a957 100644 --- a/dom/workers/test/test_multi_sharedWorker_lifetimes_nobfcache.html +++ b/dom/workers/test/test_multi_sharedWorker_lifetimes_nobfcache.html @@ -104,11 +104,15 @@ // the iframe containing this page is isolated from first-party storage access, // which isolates BroadcastChannel communication. SpecialPowers.wrap(document).notifyUserGestureActivation(); - SpecialPowers.pushPermissions([{'type': 'storageAccessAPI', 'allow': 1, 'context': document}], () =>{ - SpecialPowers.wrap(document).requestStorageAccess().then(() => { - runTest(); - }).then(() => { - SpecialPowers.removePermission("3rdPartyStorage^http://mochi.test:8888", "http://mochi.xorigin-test:8888"); + SpecialPowers.pushPrefEnv({ + set: [["privacy.partition.always_partition_third_party_non_cookie_storage", false]], + }).then(() => { + SpecialPowers.pushPermissions([{'type': 'storageAccessAPI', 'allow': 1, 'context': document}], () =>{ + SpecialPowers.wrap(document).requestStorageAccess().then(() => { + runTest(); + }).then(() => { + SpecialPowers.removePermission("3rdPartyStorage^http://mochi.test:8888", "http://mochi.xorigin-test:8888"); + }); }); }); } else { diff --git a/dom/workers/test/test_subworkers_suspended.html b/dom/workers/test/test_subworkers_suspended.html index bdbd6dd5050a..d5c62a28d04a 100644 --- a/dom/workers/test/test_subworkers_suspended.html +++ b/dom/workers/test/test_subworkers_suspended.html @@ -122,11 +122,15 @@ // the iframe containing this page is isolated from first-party storage access, // which isolates BroadcastChannel communication. SpecialPowers.wrap(document).notifyUserGestureActivation(); - SpecialPowers.pushPermissions([{'type': 'storageAccessAPI', 'allow': 1, 'context': document}], () =>{ - SpecialPowers.wrap(document).requestStorageAccess().then(() => { - runTest(); - }).then(() => { - SpecialPowers.removePermission("3rdPartyStorage^http://mochi.test:8888", "http://mochi.xorigin-test:8888"); + SpecialPowers.pushPrefEnv({ + set: [["privacy.partition.always_partition_third_party_non_cookie_storage", false]], + }).then(() => { + SpecialPowers.pushPermissions([{'type': 'storageAccessAPI', 'allow': 1, 'context': document}], () =>{ + SpecialPowers.wrap(document).requestStorageAccess().then(() => { + runTest(); + }).then(() => { + SpecialPowers.removePermission("3rdPartyStorage^http://mochi.test:8888", "http://mochi.xorigin-test:8888"); + }); }); }); } else { diff --git a/dom/workers/test/test_suspend.html b/dom/workers/test/test_suspend.html index 0e195dae807c..9ab1a6a7ec90 100644 --- a/dom/workers/test/test_suspend.html +++ b/dom/workers/test/test_suspend.html @@ -167,11 +167,15 @@ // the iframe containing this page is isolated from first-party storage access, // which isolates BroadcastChannel communication. SpecialPowers.wrap(document).notifyUserGestureActivation(); - SpecialPowers.pushPermissions([{'type': 'storageAccessAPI', 'allow': 1, 'context': document}], () =>{ - SpecialPowers.wrap(document).requestStorageAccess().then(() => { - runTest(); - }).then(() => { - SpecialPowers.removePermission("3rdPartyStorage^http://mochi.test:8888", "http://mochi.xorigin-test:8888"); + SpecialPowers.pushPrefEnv({ + set: [["privacy.partition.always_partition_third_party_non_cookie_storage", false]], + }).then(() => { + SpecialPowers.pushPermissions([{'type': 'storageAccessAPI', 'allow': 1, 'context': document}], () =>{ + SpecialPowers.wrap(document).requestStorageAccess().then(() => { + runTest(); + }).then(() => { + SpecialPowers.removePermission("3rdPartyStorage^http://mochi.test:8888", "http://mochi.xorigin-test:8888"); + }); }); }); } else {