blob: 0d256d4080c503acd256d8de77c45823d5289c34 [file] [log] [blame]
<!DOCTYPE html>
<head>
<title>Block 'image/*' when served as script.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
window.scriptsSuccessfullyLoaded = 0;
</script>
</head>
<body>
<script src="resources/script-with-header.pl?mime=image/gif&amp;options=invalid"></script>
<script src="resources/script-with-header.pl?mime=image/jpeg&amp;options=invalid"></script>
<script src="resources/script-with-header.pl?mime=IMAGE/PNG&amp;options=invalid"></script>
<script src="resources/script-with-header.pl?mime=image/x-icon&amp;options=invalid"></script>
<script src="resources/script-with-header.pl?mime=image/svg+xml&amp;options=invalid"></script>
<script>
test(function () {
assert_equals(window.scriptsSuccessfullyLoaded, 0);
}, "All image/* scripts should be blocked.");
</script>
</body>
</html>