Source code

Revision control

Copy as Markdown

Other Tools

<!--
Any copyright is dedicated to the Public Domain.
-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Helper for Permissions API Test</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
<script>
'use strict';
async function helper() {
let status = await navigator.permissions
.query({ name: "storage-access" });
status.onchange = () => {
status.onchange = null;
parent.postMessage(status.state, "*")
};
parent.postMessage("ready", "*");
}
</script>
</head>
<body onload="helper()">
</body>
</html>