зеркало из https://github.com/mozilla/gecko-dev.git
32 строки
707 B
HTML
32 строки
707 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 SharedWorker("browser_permissionsSharedWorker.js");
|
|
w.port.onmessage = function(e) {
|
|
let message;
|
|
if (e.data.status == "success") {
|
|
message = "ok";
|
|
} else {
|
|
message = e.data.error;
|
|
}
|
|
postMessage(message, "*");
|
|
};
|
|
|
|
const name = window.location.pathname + "_sharedWorker";
|
|
w.port.postMessage(name);
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body onload="runTest();"></body>
|
|
|
|
</html>
|