browser_forgetThisSiteAdd.html 982 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/
  4. -->
  5. <html>
  6. <head>
  7. <title>Indexed Database Test</title>
  8. <script type="text/javascript;version=1.7">
  9. function testSteps()
  10. {
  11. let request = indexedDB.open("browser_forgetThisSite.js", 11);
  12. request.onerror = grabEventAndContinueHandler;
  13. request.onupgradeneeded = grabEventAndContinueHandler;
  14. let event = yield undefined;
  15. if (event.type == "error") {
  16. testException = event.target.error.name;
  17. }
  18. else {
  19. let db = event.target.result;
  20. testResult = db.version;
  21. event.target.transaction.oncomplete = finishTest;
  22. yield undefined;
  23. }
  24. yield undefined;
  25. }
  26. </script>
  27. <script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
  28. </head>
  29. <body onload="runTest();" onunload="finishTestNow();"></body>
  30. </html>