generic-0_10.sub.html (995B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>test implicit port number matching (requires port 80)</title> 5 <meta http-equiv="Content-Security-Policy content="script-src 'self' {{domains[www]}} 'unsafe-inline';"> 6 <script src='/resources/testharness.js'></script> 7 <script src='/resources/testharnessreport.js'></script> 8 <script> 9 var t = async_test("Test that script does not fire violation event"); 10 window.addEventListener("securitypolicyviolation", t.unreached_func("Should not have fired a violation event")); 11 12 var head = document.getElementsByTagName('head')[0]; 13 var script = document.createElement('script'); 14 script.type = 'text/javascript'; 15 script.src = "http://{{domains[www]}}/content-security-policy/generic/positiveTest.js"; 16 head.appendChild(script); 17 </script> 18 19 <script> 20 t.done(); 21 </script> 22 </head> 23 <body> 24 <h1>test implicit port number matching (requires port 80)</h1> 25 <div id='log'></div> 26 </body> 27 </html>