| Index: third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-video-as-script.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-video-as-script.html b/third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-video-as-script.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4352a144547e0f8140434ffbf16c890280ef3386
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/contentTypeOptions/block-video-as-script.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<head>
|
| + <title>Block 'video/*' 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=video/avi&options=invalid"></script>
|
| + <script src="resources/script-with-header.pl?mime=ViDeO/fli&options=invalid"></script>
|
| + <script src="resources/script-with-header.pl?mime=video/x-motion-jpeg&options=invalid"></script>
|
| + <script src="resources/script-with-header.pl?mime=video/whatever+xml&options=invalid"></script>
|
| + <script>
|
| + test(function () {
|
| + assert_equals(window.scriptsSuccessfullyLoaded, 0);
|
| + }, "All video/* scripts should be blocked.");
|
| + </script>
|
| +</body>
|
| +</html>
|
| +
|
|
|