summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/style-src
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/style-src')
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/3_3.css1
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_1.html33
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_1.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_2.html25
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_2.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_3.html37
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_3.html.sub.headers6
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_4-import.css3
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.css1
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.html27
-rw-r--r--testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.html.sub.headers6
11 files changed, 0 insertions, 151 deletions
diff --git a/testing/web-platform/tests/content-security-policy/style-src/3_3.css b/testing/web-platform/tests/content-security-policy/style-src/3_3.css
deleted file mode 100644
index 8086244b2..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/3_3.css
+++ /dev/null
@@ -1 +0,0 @@
-#content {margin-left: 2px;} \ No newline at end of file
diff --git a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_1.html b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_1.html
deleted file mode 100644
index 6c4c1a320..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_1.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title></title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
-
- <style>
- /* none of this should be applied */
- #log {
- margin-left: 200px;
- }
- </style>
-</head>
-<body>
- <h1>
- Inline style should not be applied
- without unsafe-inline directive
- </h1>
- <div id='log'></div>
-
- <script>
- test(function() {
- var logEl = document.getElementById("log");
- var marginLeftVal = getComputedStyle(logEl).getPropertyValue('margin-left');
- assert_false(marginLeftVal == "200px")},
- "Inline style should not be applied"
- );
- </script>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=style-src%20%27self%27'></script>
-</body>
-</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_1.html.sub.headers b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_1.html.sub.headers
deleted file mode 100644
index c550a46c2..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_1.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: style-src-3_1={{$id:uuid()}}; Path=/content-security-policy/style-src/
-Content-Security-Policy: style-src 'self'; 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/style-src/style-src-3_2.html b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_2.html
deleted file mode 100644
index ce904d96b..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_2.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>Inline style attributes should not be applied without 'unsafe-inline' style-src directive.</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script>
- onload = function() {
- test(function() {
- var text = document.getElementById("content");
- assert_true(getComputedStyle(text).marginLeft != "2px", "Inline style attribute should not be applied to text");
- });
- }
- </script>
-</head>
-<body>
- <h1>Inline style attributes should not be applied without 'unsafe-inline' style-src directive.</h1>
- <div id='log'></div>
-
- <div id="content" style="margin-left: 2px">This text should not have a margin-left of 2</div>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=style-src%20%27self%27'></script>
-
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_2.html.sub.headers b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_2.html.sub.headers
deleted file mode 100644
index 3343ccee9..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_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: style-src-3_2={{$id:uuid()}}; Path=/content-security-policy/style-src/
-Content-Security-Policy: script-src 'self' 'unsafe-inline'; style-src 'self'; 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/style-src/style-src-3_3.html b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_3.html
deleted file mode 100644
index d836b351c..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_3.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
- <title>href of link with rel=stylesheet must be in src list</title>
- <script src='/resources/testharness.js'></script>
- <script src='/resources/testharnessreport.js'></script>
- <script>
- var head = document.getElementsByTagName('head')[0];
- var link = document.createElement('link');
- link.setAttribute('rel', 'stylesheet');
- link.setAttribute('type', 'text/css');
- link.setAttribute('href', location.protocol +
- '//www1.' +
- location.hostname +
- ':' +
- location.port +
- '/content-security-policy/style-src/3_3.css');
- head.appendChild(link);
-
- onload = function doTest() {
- test(function() {
- var text = document.getElementById("content");
- assert_true(getComputedStyle(text).marginLeft != "2px", "Style sheet loaded from origin not in style-src directive should be blocked");
- });
- }
- </script>
-</head>
-<body>
- <h1>href of link with rel=stylesheet must be in src list</h1>
- <div id='log'></div>
-
- <div id="content">This text should not have a margin-left of 2</div>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=style-src%20%27self%27'></script>
-
-</body>
-</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_3.html.sub.headers b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_3.html.sub.headers
deleted file mode 100644
index ca1adc553..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_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: style-src-3_3={{$id:uuid()}}; Path=/content-security-policy/style-src/
-Content-Security-Policy: script-src 'self' 'unsafe-inline'; style-src 'self'; 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/style-src/style-src-3_4-import.css b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4-import.css
deleted file mode 100644
index 8ef865fdc..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4-import.css
+++ /dev/null
@@ -1,3 +0,0 @@
-#log {
- margin-left: 200px;
-}
diff --git a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.css b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.css
deleted file mode 100644
index 11729ce7a..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.css
+++ /dev/null
@@ -1 +0,0 @@
-@import "http://{{host}}:{{ports[http][1]}}/content-security-policy/style-src/style-src-3_4-import.css";
diff --git a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.html b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.html
deleted file mode 100644
index 92553dd67..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title></title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <link href="style-src-3_4.css?pipe=sub" rel=stylesheet type=text/css>
-</head>
-<body>
- <h1>
- @import stylesheet should not be loaded
- if its URL doesn't match style-src.
- </h1>
- <div id='log'></div>
-
- <script>
- test(function() {
- var logEl = document.getElementById("log");
- var marginLeftVal = getComputedStyle(logEl).getPropertyValue('margin-left');
- assert_false(marginLeftVal == "200px")},
- "@import stylesheet should not be applied"
- );
- </script>
-
- <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=style-src%20%27self%27'></script>
-</body>
-</html>
diff --git a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.html.sub.headers b/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.html.sub.headers
deleted file mode 100644
index 9a9e1a288..000000000
--- a/testing/web-platform/tests/content-security-policy/style-src/style-src-3_4.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: style-src-3_4={{$id:uuid()}}; Path=/content-security-policy/style-src/
-Content-Security-Policy: style-src 'self'; report-uri ../support/report.py?op=put&reportID={{$id}} \ No newline at end of file