зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ae67ac398a
Коммит
ef79ab261f
|
@ -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
|
||||
);
|
Загрузка…
Ссылка в новой задаче