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

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