| Index: LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.html
|
| diff --git a/LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.html b/LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9e21d0c732ac9b1d9e08a0680467417dde78b4d7
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/contentTypeOptions/image-as-script-blocked-with-error.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>"image/" MIME as script throws error when 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="/loading/resources/image2.png"><' + '/script>');
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|