| <!DOCTYPE html> |
| <html> |
| <title>Test that the header will override allow=autoplay.</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 that disables autoplay with a HTTP header --> |
| <iframe allow="autoplay"></iframe> |
| <script> |
| runTest(simulateViewportClick, [ |
| ['http://127.0.0.1:8000/media/autoplay/document-user-activation-cross-origin-feature-policy-header.html', true], |
| ['http://localhost:8000/media/autoplay/resources/nested-frame-with-header.php', false] |
| ]); |
| </script> |
| </html> |