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