Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Unified Diff: LayoutTests/http/tests/security/contentTypeOptions/nosniff-script-blocked-with-error.html

Issue 1032033002: Fire error events for a variety of script and style failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698