permissionsPrompt.html (849B)
1 <!-- 2 Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ 4 --> 5 <html> 6 <head> 7 <meta charset=UTF-8> 8 <title>Persistent-Storage Permission Prompt Test</title> 9 10 <script type="text/javascript" src="helpers.js"></script> 11 12 <script type="text/javascript"> 13 function* testSteps() 14 { 15 SpecialPowers.pushPrefEnv({ 16 "set": [["dom.storageManager.prompt.testing", false], 17 ["dom.storageManager.prompt.testing.allow", false]] 18 }, continueToNextStep); 19 yield undefined; 20 21 navigator.storage.persist().then(result => { 22 testGenerator.next(result); 23 }); 24 testResult = yield undefined; 25 26 finishTest(); 27 } 28 </script> 29 30 </head> 31 32 <body onload="runTest();" onunload="finishTestNow();"></body> 33 34 </html>