Bug 1762462 - Make tests in dom/ipc/tests/ reflect Always Partitioning Storage; r=nika

Depends on D148050

Differential Revision: https://phabricator.services.mozilla.com/D148051
This commit is contained in:
Thomas Wisniewski 2022-07-14 19:26:29 +00:00
parent 40a6edaccc
commit 8ac48b16c4

View File

@ -67,6 +67,9 @@ async function broadcastLoadTest(baseURI, callback) {
// the iframe containing this page is isolated from first-party storage access,
// which isolates BroadcastChannel communication.
if (isXOrigin) {
await SpecialPowers.pushPrefEnv({
set: [["privacy.partition.always_partition_third_party_non_cookie_storage", false]],
});
SpecialPowers.wrap(document).notifyUserGestureActivation();
await SpecialPowers.addPermission(
"storageAccessAPI",