blob: fcc5690de1f0114c778a690ab2ac1c4512463091 [file] [log] [blame]
<!DOCTYPE html>
<html>
<title>Test that autoplay works on child frames, but only if allowed.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/media-resources/media-file.js"></script>
<script src="resources/autoplay-test.js"></script>
<!-- This is a cross origin iframe with a same origin child with no allow attribute -->
<iframe allow="autoplay" src="http://localhost:8000/media/autoplay/resources/nested-iframe-1b.html"></iframe>
<script>
simulateViewportClick();
runTest({
'http://127.0.0.1:8000/media/autoplay/document-user-activation-feature-policy-alternating.html': true,
'http://localhost:8000/media/autoplay/resources/nested-iframe-1b.html': true,
'http://127.0.0.1:8000/media/autoplay/resources/nested-iframe-2.html': false
});
</script>
</html>