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

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