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
jww
2016/06/11 22:45:12
Just as an explanation, this is how we used to wri
| |
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 a.integrity = 'sha384-Y1+YTX5OChgsfjk2LBCdCTBQop+pFV5749SCz1XuuZAQnuIxkBrP e0obXBmjhmoE'; | |
15 a.crossorigin='anonymous'; | |
14 document.body.appendChild(a); | 16 document.body.appendChild(a); |
15 </script> | 17 </script> |
16 </body> | 18 </body> |
17 </html> | 19 </html> |
OLD | NEW |