f34a7e8442790130838bc4261c020981fc325a45
[WebKit-https.git] / LayoutTests / security / contentSecurityPolicy / object-src-none-blocks-youtube-plugin-replacement.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="object-src 'none'">
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
14 function done()
15 {
16     if (window.testRunner)
17         testRunner.notifyDone();
18 }
19
20 document.addEventListener("securitypolicyviolation", done, false);
21 </script>
22 </head>
23 <body>
24 <object width="425" height="350" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
25     codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
26     <embed width="425" height="350" type="application/x-shockwave-flash" src="https://www.youtube.com/v/UF8uR6Z6KLc">
27 </object>
28 </body>
29 </html>