blob: f7a4a3aa7163ba910151cea8a208b03c2b10fc48 [file] [log] [blame]
<!DOCTYPE html>
<html>
<title>Test that autoplay is disabled for cross origin by default.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/autoplay-test.js"></script>
<!-- This is a cross origin iframe with a same origin child with allow="autoplay" -->
<iframe src="http://localhost:8000/media/autoplay/resources/nested-iframe-1a.html"></iframe>
<script>
simulateViewportClick();
runTest({
'http://127.0.0.1:8000/media/autoplay/document-user-activation-cross-origin-feature-policy-disabled.html': true,
'http://localhost:8000/media/autoplay/resources/nested-iframe-1a.html': false,
'http://127.0.0.1:8000/media/autoplay/resources/nested-iframe-2.html': false
});
</script>
</html>