gecko-dev/dom/indexedDB/test/browser_permissionsWorker.html

32 строки
667 B
HTML

<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<title>Indexed Database Test</title>
<script type="text/javascript">
function runTest() {
let w = new Worker("browser_permissionsWorker.js");
w.onmessage = function(e) {
let message;
if (e.data.status == "success") {
message = "ok";
} else {
message = e.data.error;
}
postMessage(message, "*");
};
const name = window.location.pathname;
w.postMessage(name);
}
</script>
</head>
<body onload="runTest();"></body>
</html>