| <!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="/media-resources/media-file.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" src="http://localhost:8000/media/autoplay/resources/nested-frame-with-header.php"></iframe> |
| <script> |
| simulateViewportClick(); |
| runTest({ |
| '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> |