| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>'X-Content-Type-Options: nosniff;' throws error when script blocked.</title> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <body> |
| <script> |
| setup({single_test: true}); |
| |
| function scriptError() { |
| done(); |
| } |
| function scriptLoad() { |
| assert_unreached('Script loaded.'); |
| } |
| |
| document.write('<script onload="scriptLoad()" onerror="scriptError()" src="./resources/script-with-header.pl?mime=image/png"><' + '/script>'); |
| </script> |
| </body> |
| </html> |