Bug 1762462 - Make tests in dom/indexedDB/test/unit/ reflect Always Partitioning Storage; r=timhuang

Depends on D148049

Differential Revision: https://phabricator.services.mozilla.com/D148050
This commit is contained in:
Thomas Wisniewski 2022-07-15 13:26:19 +00:00
Родитель 779161be09
Коммит fefdd42f8d
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -68,6 +68,14 @@ async function setup(isXOrigin) {
// first-party access to the storage estimate. Without this, it is
// isolated and this test will always fail
if (isXOrigin) {
await SpecialPowers.pushPrefEnv({
set: [
[
"privacy.partition.always_partition_third_party_non_cookie_storage",
false,
],
],
});
SpecialPowers.wrap(document).notifyUserGestureActivation();
await SpecialPowers.addPermission(
"storageAccessAPI",