OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Script element has error on bad script-src</title> |
| 5 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsaf
e-inline'"> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 <script> |
| 9 window.result = false; |
| 10 function scriptError() { |
| 11 assert_equals(result, false, "Value should not be set"); |
| 12 done(); |
| 13 } |
| 14 function scriptLoad() { |
| 15 assert_unreached("Script loaded"); |
| 16 done(); |
| 17 } |
| 18 </script> |
| 19 </head> |
| 20 <body> |
| 21 <script onload="scriptLoad();" onerror="scriptError();" src="http://localhos
t:8000/security/contentSecurityPolicy/resources/script-set-value.js"></script> |
| 22 </body> |
| 23 </html> |
OLD | NEW |