Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /document-picture-in-picture/requires-secure-context.html - WPT Dashboard Interop Dashboard
<!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>