Bug 1572393 - Add back browser_storageAccessPrivateWindow.js to undo the test chunking changes which broke Linux64 ASan BC5 tests;

Differential Revision: https://phabricator.services.mozilla.com/D41257

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ehsan Akhgari 2019-08-08 18:10:32 +00:00
Родитель ae67ac398a
Коммит ef79ab261f
2 изменённых файлов: 30 добавлений и 0 удалений

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

@ -89,6 +89,8 @@ support-files = tracker.js
[browser_userInteraction.js]
[browser_storageAccessDoorHanger.js]
skip-if = fission
[browser_storageAccessPrivateWindow.js]
skip-if = fission || serviceworker_e10s
[browser_storageAccessPromiseRejectHandlerUserInteraction.js]
skip-if = fission
[browser_storageAccessPromiseResolveHandlerUserInteraction.js]

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

@ -0,0 +1,28 @@
/* import-globals-from antitracking_head.js */
AntiTracking.runTest(
"Storage Access API called in a private window",
// blocking callback
async _ => {
/* import-globals-from storageAccessAPIHelpers.js */
let [threw, rejected] = await callRequestStorageAccess();
ok(!threw, "requestStorageAccess should not throw");
ok(!rejected, "requestStorageAccess shouldn't be available");
},
null, // non-blocking callback
// cleanup function
async _ => {
await new Promise(resolve => {
Services.clearData.deleteData(Ci.nsIClearDataService.CLEAR_ALL, value =>
resolve()
);
});
},
[["dom.storage_access.enabled", true]], // extra prefs
false, // no window open test
false, // no user-interaction test
0, // no blocking notifications
true, // run in private window
null // iframe sandbox
);