summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/generic
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/generic')
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/fail-0_1.js3
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_1-img-src.html35
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_1-img-src.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_1-script-src.html35
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_1-script-src.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_10.html21
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_10.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_10_1.sub.html22
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_10_1.sub.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_2.html15
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_2.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_2_2.sub.html22
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_2_2.sub.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_2_3.html22
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_2_3.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_8.html22
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_8.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_8_1.sub.html21
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_8_1.sub.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_9.sub.html22
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/generic-0_9.sub.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/negativeTests.js3
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/no-default-src.sub.html27
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/no-default-src.sub.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/pass-0_1.js3
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/positiveTest.js6
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/unreached.js3
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/wildcardHostTest.js8
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/wildcardHostTestFailure.js8
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/wildcardHostTestSuceeds.js1
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/wildcardPortTest.js8
-rw-r--r--testing/web-platform/tests/content-security-policy/generic/wildcardPortTestSuceeds.js1
32 files changed, 0 insertions, 374 deletions
diff --git a/testing/web-platform/tests/content-security-policy/generic/fail-0_1.js b/testing/web-platform/tests/content-security-policy/generic/fail-0_1.js
deleted file mode 100644
index 5c580273d..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/fail-0_1.js
+++ /dev/null
@@ -1,3 +0,0 @@
-(function () {
- scriptsrc1.step(function() { assert_unreached('Unsafe inline script ran.') });
-})();
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_1-img-src.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_1-img-src.html
deleted file mode 100644
index c3778f816..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_1-img-src.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>default-src should cascade to img-src directive</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='../support/siblingPath.js'></script>
-</head>
-<body>
- <h1>default-src should cascade to img-src directive</h1>
- <div id='log'></div>
-
- <script>
- var imgsrc = async_test("Verify cascading of default-src to img-src policy");
- var onerrorFired = false;
- </script>
-
- <img id='imgfail' src=''
- onload='imgsrc.step(function() { assert_unreached("Image load was not blocked."); });'
- onerror='onerrorFired = true;'>
- <img src='../support/pass.png'
- onload='imgsrc.step(function() { assert_true(true, "Image load was blocked."); });'>
-
- <script>
- document.getElementById('imgfail').src = buildSiblingPath('www1', '../support/fail.png');
- onload = function() {
- imgsrc.step(function() { assert_true(onerrorFired, "onerror handler for blocked img didn't fire");});
- imgsrc.done();
- }
- </script>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=default-src%20%27self%27%20%27unsafe-inline%27'></script>
-
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_1-img-src.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_1-img-src.html.sub.headers
deleted file mode 100644
index 61bdc0a30..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_1-img-src.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_1-img-src={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: default-src 'self' 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}} \ No newline at end of file
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_1-script-src.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_1-script-src.html
deleted file mode 100644
index 740b2a553..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_1-script-src.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>default-src should cascade to script-src directive</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='../support/siblingPath.js'></script>
-</head>
-<body>
- <h1>default-src should cascade to script-src directive</h1>
- <div id='log'></div>
-
- <script>
- var scriptsrc1 = async_test("Verify cascading of default-src to script-src policy: block");
- var scriptsrc2 = async_test("Verify cascading of default-src to script-src policy: allow");
- var allowedScriptRan = false;
- </script>
-
- <script src='pass-0_1.js'></script>
-
- <script>
- var inlineScript = document.createElement('script');
- inlineScript.src = buildSiblingPath('www1', 'fail-0_1.js');
- document.getElementById('log').appendChild(inlineScript);
- onload = function() {
- scriptsrc1.done();
- scriptsrc2.step( function() { assert_true(allowedScriptRan, "allowed script didn't run") });
- scriptsrc2.done();
- }
- </script>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=default-src%20%27self%27%20%27unsafe-inline%27'></script>
-
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_1-script-src.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_1-script-src.html.sub.headers
deleted file mode 100644
index b3ff8c460..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_1-script-src.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_1-script-src={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: default-src 'self' 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}} \ No newline at end of file
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_10.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_10.html
deleted file mode 100644
index 703e50b44..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_10.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>test implicit port number matching (requires port 80)</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script>
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = "http://www." + location.hostname + "/content-security-policy/generic/positiveTest.js";
- head.appendChild(script);
- </script>
-</head>
-<body>
- <h1>test implicit port number matching (requires port 80)</h1>
- <div id='log'></div>
-
- <script async defer src='../support/checkReport.sub.js?reportExists=false'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_10.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_10.html.sub.headers
deleted file mode 100644
index c58b0536f..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_10.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_10={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: script-src 'self' www.{{host}} 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_10_1.sub.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_10_1.sub.html
deleted file mode 100644
index c66640de3..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_10_1.sub.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>implicit port number matching fails with a different port</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='negativeTests.js'></script>
- <script>
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = "http://www." + location.hostname + ":{{ports[http][1]}}/content-security-policy/generic/unreached.js";
- head.appendChild(script);
- </script>
-</head>
-<body>
- <h1>implicit port number matching fails with a different port</h1>
- <div id='log'></div>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27self%27%20www.{{host}}%20%27unsafe-inline%27'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_10_1.sub.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_10_1.sub.html.sub.headers
deleted file mode 100644
index e8fcf07c2..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_10_1.sub.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_10_1={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: script-src 'self' www.{{host}} 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_2.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_2.html
deleted file mode 100644
index 130bfadad..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_2.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>'self' keyword positive test</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='positiveTest.js'></script>
-</head>
-<body>
- <h1>'self' keyword positive test</h1>
- <div id='log'></div>
-
- <script async defer src='../support/checkReport.sub.js?reportExists=false'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_2.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_2.html.sub.headers
deleted file mode 100644
index 776112de6..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_2.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_2={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: script-src 'self'; report-uri ../support/report.py?op=put&reportID={{$id}}
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_2_2.sub.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_2_2.sub.html
deleted file mode 100644
index 9d274ea59..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_2_2.sub.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>'self' fails with a different port</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='negativeTests.js'></script>
- <script>
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = "http://" + location.hostname + ":{{ports[http][1]}}/content-security-policy/generic/unreached.js";
- head.appendChild(script);
- </script>
-</head>
-<body>
- <h1>'self' fails with a different port</h1>
- <div id='log'></div>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27self%27%20%27unsafe-inline%27'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_2_2.sub.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_2_2.sub.html.sub.headers
deleted file mode 100644
index 769ccc154..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_2_2.sub.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_2_2={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: script-src 'self' 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_2_3.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_2_3.html
deleted file mode 100644
index ff4b8db8a..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_2_3.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>'self' fails with a different host (including sub-host e.g. foo.com as self with content from bar.foo.com)</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='negativeTests.js'></script>
- <script>
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = "http://www." + location.hostname + ":" + location.port + "/content-security-policy/generic/unreached.js";
- head.appendChild(script);
- </script>
-</head>
-<body>
- <h1>'self' fails with a different host (including sub-host e.g. foo.com as self with content from bar.foo.com)</h1>
- <div id='log'></div>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27self%27%20%27unsafe-inline%27'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_2_3.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_2_3.html.sub.headers
deleted file mode 100644
index 0a8defccd..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_2_3.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_2_3={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: script-src 'self' 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_8.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_8.html
deleted file mode 100644
index 2e7df3776..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_8.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>test wildcard host name matching (*.web-platform.test is good)</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='wildcardHostTest.js'></script>
- <script>
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = "http://www." + location.hostname + ":" + location.port + "/content-security-policy/generic/wildcardHostTestSuceeds.js";
- head.appendChild(script);
- </script>
-</head>
-<body>
- <h1>test wildcard host name matching (*.web-platform.test is good)</h1>
- <div id='log'></div>
-
- <script async defer src='../support/checkReport.sub.js?reportExists=false'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_8.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_8.html.sub.headers
deleted file mode 100644
index 34756f9db..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_8.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_8={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: script-src 'self' *.{{host}}:{{ports[http][0]}} 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_8_1.sub.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_8_1.sub.html
deleted file mode 100644
index 167b4458d..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_8_1.sub.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>test wildcard host name matching (www*.web-platform.test is bad, *www.web-platform.test is bad)</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='wildcardHostTestFailure.js'></script>
- <script>
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = "http://www." + location.hostname + ":" + location.port + "/content-security-policy/generic/wildcardHostTestSuceeds.js";
- head.appendChild(script);
- </script>
-</head>
-<body>
- <h1>test wildcard host name matching (www*.web-platform.test is bad, *www.web-platform.test is bad)</h1>
- <div id='log'></div>
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27self%27%20*w.{{host}}:{{ports[http][0]}}%20w*.{{host}}:{{ports[http][0]}}%20%27unsafe-inline%27'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_8_1.sub.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_8_1.sub.html.sub.headers
deleted file mode 100644
index 57a038a05..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_8_1.sub.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_8_1={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: script-src 'self' *w.{{host}}:{{ports[http][0]}} w*.{{host}}:{{ports[http][0]}} 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_9.sub.html b/testing/web-platform/tests/content-security-policy/generic/generic-0_9.sub.html
deleted file mode 100644
index cadeb178f..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_9.sub.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>test wildcard port number matching</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src='wildcardPortTest.js'></script>
- <script>
- var head = document.getElementsByTagName('head')[0];
- var script = document.createElement('script');
- script.type = 'text/javascript';
- script.src = "http://" + location.hostname + ":{{ports[http][1]}}/content-security-policy/generic/wildcardPortTestSuceeds.js";
- head.appendChild(script);
- </script>
-</head>
-<body>
- <h1>test wildcard port number matching</h1>
- <div id='log'></div>
-
- <script async defer src='../support/checkReport.sub.js?reportExists=false'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/generic-0_9.sub.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/generic-0_9.sub.html.sub.headers
deleted file mode 100644
index 2f2336009..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/generic-0_9.sub.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: generic-0_9={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: script-src 'self' {{host}}:* 'unsafe-inline'; report-uri ../support/report.py?op=put&reportID={{$id}}
diff --git a/testing/web-platform/tests/content-security-policy/generic/negativeTests.js b/testing/web-platform/tests/content-security-policy/generic/negativeTests.js
deleted file mode 100644
index 44b4d7f68..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/negativeTests.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var t1 = async_test("Prevents access to external scripts.");
-
-onload = function() {t1.done();}
diff --git a/testing/web-platform/tests/content-security-policy/generic/no-default-src.sub.html b/testing/web-platform/tests/content-security-policy/generic/no-default-src.sub.html
deleted file mode 100644
index 933986800..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/no-default-src.sub.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>no default src doesn't behave exactly like *</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script src="../support/alertAssert.sub.js?alerts=[]"> </script>
- <script src='positiveTest.js'></script>
- <!-- enforcing policy: foobar; report-uri ...
- -->
-</head>
-<body>
- <h1>no default src doesn't behave exactly like *</h1>
- This page has a CSP header but an unknown directive.
- This should have no impact on an img loaded from a data:
- uri, or an inline script, although that would be blocked by a default-src policy of *.
- <br>
- <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAABACAIAAAABPqsMAAAACXBIWXMA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j6B45HPmL9so2ZKs94sNAAAAAElFTkSuQmCC'>
- <script>
- var allowedScriptRan = true;
- </script>
-
- <div id='log'></div>
-
- <script async defer src='../support/checkReport.sub.js?reportExists=false'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/generic/no-default-src.sub.html.sub.headers b/testing/web-platform/tests/content-security-policy/generic/no-default-src.sub.html.sub.headers
deleted file mode 100644
index a7337acce..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/no-default-src.sub.html.sub.headers
+++ /dev/null
@@ -1,6 +0,0 @@
-Expires: Mon, 26 Jul 1997 05:00:00 GMT
-Cache-Control: no-store, no-cache, must-revalidate
-Cache-Control: post-check=0, pre-check=0, false
-Pragma: no-cache
-Set-Cookie: no-default-src={{$id:uuid()}}; Path=/content-security-policy/generic/
-Content-Security-Policy: foobar; report-uri ../support/report.py?op=put&reportID={{$id}} \ No newline at end of file
diff --git a/testing/web-platform/tests/content-security-policy/generic/pass-0_1.js b/testing/web-platform/tests/content-security-policy/generic/pass-0_1.js
deleted file mode 100644
index 3a08dd562..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/pass-0_1.js
+++ /dev/null
@@ -1,3 +0,0 @@
-(function () {
- allowedScriptRan = true;
-})();
diff --git a/testing/web-platform/tests/content-security-policy/generic/positiveTest.js b/testing/web-platform/tests/content-security-policy/generic/positiveTest.js
deleted file mode 100644
index 63c999196..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/positiveTest.js
+++ /dev/null
@@ -1,6 +0,0 @@
-onload = function() {
- test(function() {
- assert_true(true, 'Script ran.')},
- "Allows scripts from the same host."
- );
-}
diff --git a/testing/web-platform/tests/content-security-policy/generic/unreached.js b/testing/web-platform/tests/content-security-policy/generic/unreached.js
deleted file mode 100644
index 893fb5eba..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/unreached.js
+++ /dev/null
@@ -1,3 +0,0 @@
-onload = function() {
- t1.step(function() {assert_unreached("Script should not have ran.");});
-}
diff --git a/testing/web-platform/tests/content-security-policy/generic/wildcardHostTest.js b/testing/web-platform/tests/content-security-policy/generic/wildcardHostTest.js
deleted file mode 100644
index da3e2790f..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/wildcardHostTest.js
+++ /dev/null
@@ -1,8 +0,0 @@
-wildcardHostTestRan = false;
-
-onload = function() {
- test(function() {
- assert_true(wildcardHostTestRan, 'Script should have ran.')},
- "Wildcard host matching works."
- );
-}
diff --git a/testing/web-platform/tests/content-security-policy/generic/wildcardHostTestFailure.js b/testing/web-platform/tests/content-security-policy/generic/wildcardHostTestFailure.js
deleted file mode 100644
index 75ec8cf80..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/wildcardHostTestFailure.js
+++ /dev/null
@@ -1,8 +0,0 @@
-wildcardHostTestRan = false;
-
-onload = function() {
- test(function() {
- assert_false(wildcardHostTestRan, 'Script should not have ran.')},
- "Wildcard host matching works."
- );
-}
diff --git a/testing/web-platform/tests/content-security-policy/generic/wildcardHostTestSuceeds.js b/testing/web-platform/tests/content-security-policy/generic/wildcardHostTestSuceeds.js
deleted file mode 100644
index 8b115d7fc..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/wildcardHostTestSuceeds.js
+++ /dev/null
@@ -1 +0,0 @@
-wildcardHostTestRan = true;
diff --git a/testing/web-platform/tests/content-security-policy/generic/wildcardPortTest.js b/testing/web-platform/tests/content-security-policy/generic/wildcardPortTest.js
deleted file mode 100644
index 3cd1d2eae..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/wildcardPortTest.js
+++ /dev/null
@@ -1,8 +0,0 @@
-wildcardPortTestRan = false;
-
-onload = function() {
- test(function() {
- assert_true(wildcardPortTestRan, 'Script should have ran.')},
- "Wildcard port matching works."
- );
-}
diff --git a/testing/web-platform/tests/content-security-policy/generic/wildcardPortTestSuceeds.js b/testing/web-platform/tests/content-security-policy/generic/wildcardPortTestSuceeds.js
deleted file mode 100644
index 0138deb2e..000000000
--- a/testing/web-platform/tests/content-security-policy/generic/wildcardPortTestSuceeds.js
+++ /dev/null
@@ -1 +0,0 @@
-wildcardPortTestRan = true; \ No newline at end of file