diff options
Diffstat (limited to 'testing/web-platform/tests/feature-policy/resources/feature-policy-picture-in-picture.html')
-rw-r--r-- | testing/web-platform/tests/feature-policy/resources/feature-policy-picture-in-picture.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/feature-policy/resources/feature-policy-picture-in-picture.html b/testing/web-platform/tests/feature-policy/resources/feature-policy-picture-in-picture.html new file mode 100644 index 0000000000..2f33c44953 --- /dev/null +++ b/testing/web-platform/tests/feature-policy/resources/feature-policy-picture-in-picture.html @@ -0,0 +1,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> |