Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

Services.scriptloader.loadSubScript(
this
);
Services.scriptloader.loadSubScript(
this
);
add_task(async function testGrantGivesPermission() {
await setPreferences();
await openPageAndRunCode(
TEST_TOP_PAGE,
getExpectPopupAndClick("reject"),
TEST_3RD_PARTY_PAGE,
requestStorageAccessAndExpectFailure
);
await SpecialPowers.testPermission(
"storageAccessAPI",
SpecialPowers.Services.perms.UNKNOWN_ACTION,
{
}
);
await cleanUpData();
await SpecialPowers.flushPrefEnv();
});