45ae97376243c4c4cbefca132d06453521e2897a
[WebKit-https.git] / LayoutTests / security / contentSecurityPolicy / plugins-types-allows-quicktime-plugin-replacement.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="plugin-types video/quicktime">
5 <script>
6 if (window.testRunner) {
7     testRunner.dumpAsText();
8     testRunner.waitUntilDone();
9 }
10
11 if (window.internals)
12     window.internals.settings.setPluginReplacementEnabled(true);
13 </script>
14 </head>
15 <body>
16 <embed id="embed" type="video/quicktime" width="640" height="480" src="../../plugins/resources/yellow.mov" qtsrc="../../plugins/resources/orange.mov" postdomevents=true>
17 <script>
18 document.getElementById("embed").addEventListener("qt_begin", function () {
19     alert("PASS did load plugin.");
20     if (window.testRunner)
21         testRunner.notifyDone();
22 }, true);
23 </script>
24 </body>
25 </html>