diff options
Diffstat (limited to 'testing/web-platform/tests/document-picture-in-picture/requires-secure-context.html')
-rw-r--r-- | testing/web-platform/tests/document-picture-in-picture/requires-secure-context.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/document-picture-in-picture/requires-secure-context.html b/testing/web-platform/tests/document-picture-in-picture/requires-secure-context.html new file mode 100644 index 0000000000..494bc2ae75 --- /dev/null +++ b/testing/web-platform/tests/document-picture-in-picture/requires-secure-context.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<title>Test that documentPictureInPicture is not available in insecure contexts</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<body> +<script> +test(() => { + assert_equals(undefined, window.documentPictureInPicture); +}, + "documentPictureInPicture should not be available in insecure contexts"); +</script> +</body> |