Source code

Revision control

Copy as Markdown

Other Tools

<!--
Any copyright is dedicated to the Public Domain.
-->
<html>
<head>
<meta charset=UTF-8>
<title>Persistent-Storage Permission Prompt Test</title>
<script type="text/javascript" src="helpers.js"></script>
<script type="text/javascript">
function* testSteps()
{
SpecialPowers.pushPrefEnv({
"set": [["dom.storageManager.prompt.testing", false],
["dom.storageManager.prompt.testing.allow", false]]
}, continueToNextStep);
yield undefined;
navigator.storage.persist().then(result => {
testGenerator.next(result);
});
testResult = yield undefined;
finishTest();
}
</script>
</head>
<body onload="runTest();" onunload="finishTestNow();"></body>
</html>