summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions/feature-policy-permissions-query.html
blob: bd152e973e8fd520460a325d47beab8c25f45d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
<script>
'use strict';

Promise.resolve().then(() => navigator.permissions.query({name:'geolocation'}))
  .then(permissionStatus => {
  window.parent.postMessage({ state: permissionStatus.state }, '*');
}, error => {
  window.parent.postMessage({ state: null }, '*');
});
</script>