Index: LayoutTests/http/tests/security/contentTypeOptions/nosniff-script-blocked-with-error.html |
diff --git a/LayoutTests/http/tests/security/contentTypeOptions/nosniff-script-blocked-with-error.html b/LayoutTests/http/tests/security/contentTypeOptions/nosniff-script-blocked-with-error.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e19dd615584aec2f601ed1adf5eab6b6b21e4f27 |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/contentTypeOptions/nosniff-script-blocked-with-error.html |
@@ -0,0 +1,19 @@ |
+<!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> |
+ 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> |