OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inlin e'"> | 4 <meta http-equiv="Content-Security-Policy" content="require-sri-for script; script-src 'unsafe-inline' *"> |
Mike West
2016/06/10 09:25:15
Please write this as a `testharness.js` test. See
| |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="result" text="FAIL">PASS</div> | 7 <div id="result" text="FAIL">PASS</div> |
8 | 8 |
9 <script> | 9 <script> |
10 if (window.testRunner) | 10 if (window.testRunner) |
11 testRunner.dumpAsText(); | 11 testRunner.dumpAsText(); |
12 a=document.createElement('script'); | 12 a=document.createElement('script'); |
13 a.src='http://localhost:8000/security/contentSecurityPolicy/resources/scri pt.js'; | 13 a.src='http://localhost:8000/security/contentSecurityPolicy/resources/scri pt.js'; |
14 document.body.appendChild(a); | 14 document.body.appendChild(a); |
15 </script> | 15 </script> |
16 </body> | 16 </body> |
17 </html> | 17 </html> |
OLD | NEW |