2017-04-17 10:06:39 +03:00
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
|
|
-->
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset=UTF-8>
|
|
|
|
<title>Persistent-Storage Permission Prompt Test</title>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
function* testSteps()
|
|
|
|
{
|
|
|
|
SpecialPowers.pushPrefEnv({
|
|
|
|
"set": [["dom.storageManager.enabled", true],
|
|
|
|
["dom.storageManager.prompt.testing", false],
|
2018-04-09 21:46:45 +03:00
|
|
|
["dom.storageManager.prompt.testing.allow", false]]
|
2017-04-17 10:06:39 +03:00
|
|
|
}, continueToNextStep);
|
|
|
|
yield undefined;
|
|
|
|
|
|
|
|
navigator.storage.persist().then(result => {
|
|
|
|
testGenerator.next(result);
|
|
|
|
});
|
|
|
|
testResult = yield undefined;
|
|
|
|
|
|
|
|
finishTest();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="browserHelpers.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runTest();" onunload="finishTestNow();"></body>
|
|
|
|
|
|
|
|
</html>
|