browser_permissionsWorker.html 785 B

1234567891011121314151617181920212223242526272829303132333435
  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. let testIsIDBDatabase;
  10. let testException;
  11. function runTest() {
  12. let w = new Worker('browser_permissionsWorker.js');
  13. w.onmessage = function(e) {
  14. if (e.data.status == 'success') {
  15. testIsIDBDatabase = e.data.isIDBDatabase;
  16. } else {
  17. testException = e.data.error;
  18. }
  19. setTimeout(testFinishedCallback, 0, testIsIDBDatabase, testException);
  20. }
  21. const name = window.location.pathname;
  22. w.postMessage(name);
  23. }
  24. </script>
  25. </head>
  26. <body onload="runTest();"></body>
  27. </html>