зеркало из https://github.com/mozilla/gecko-dev.git
32 строки
667 B
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>
|