summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions-policy/resources/permissions-policy-autoplay.html
blob: 665d19bea2e95889f737be7ba3f34ed4c2fbc731 (plain)
1
2
3
4
5
6
7
8
9
10
11
<script src="/common/media.js"></script>
<script src=/permissions-policy/resources/autoplay.js></script>
<script>
'use strict';

window.addEventListener('load', () => {
  isAutoplayAllowed().then((result) => {
    window.parent.postMessage({ enabled: result }, '*');
  });
}, { once: true });
</script>