summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/content-security-policy/resource-hints
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/meta/content-security-policy/resource-hints')
-rw-r--r--testing/web-platform/meta/content-security-policy/resource-hints/prefetch-allowed-by-any-directive.sub.html.ini10
-rw-r--r--testing/web-platform/meta/content-security-policy/resource-hints/prefetch-allowed-with-conflicting-permissive-policies.html.ini4
-rw-r--r--testing/web-platform/meta/content-security-policy/resource-hints/prefetch-blocked-by-default-multiple-policies.html.ini4
-rw-r--r--testing/web-platform/meta/content-security-policy/resource-hints/prefetch-blocked-by-default.html.ini4
-rw-r--r--testing/web-platform/meta/content-security-policy/resource-hints/prefetch-generate-directives.html.ini72
-rw-r--r--testing/web-platform/meta/content-security-policy/resource-hints/prefetch-ignores-prefetch-src.sub.html.ini4
6 files changed, 98 insertions, 0 deletions
diff --git a/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-allowed-by-any-directive.sub.html.ini b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-allowed-by-any-directive.sub.html.ini
new file mode 100644
index 0000000000..816cd785fe
--- /dev/null
+++ b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-allowed-by-any-directive.sub.html.ini
@@ -0,0 +1,10 @@
+[prefetch-allowed-by-any-directive.sub.html]
+ expected: TIMEOUT
+ [Prefetch should succeed when restricted by default-src but allowed by other directive]
+ expected: TIMEOUT
+
+ [Prefetch should fail when restricted by default-src and different origin allowed by other directive]
+ expected: NOTRUN
+
+ [Prefetch should succeed when restricted by default-src but origin allowed by other directive]
+ expected: NOTRUN
diff --git a/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-allowed-with-conflicting-permissive-policies.html.ini b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-allowed-with-conflicting-permissive-policies.html.ini
new file mode 100644
index 0000000000..0919ef94aa
--- /dev/null
+++ b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-allowed-with-conflicting-permissive-policies.html.ini
@@ -0,0 +1,4 @@
+[prefetch-allowed-with-conflicting-permissive-policies.html]
+ expected: TIMEOUT
+ [Prefetch should succeed when a directive in a policy is permissive, even if a subsequent policy overrides that.]
+ expected: TIMEOUT
diff --git a/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-blocked-by-default-multiple-policies.html.ini b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-blocked-by-default-multiple-policies.html.ini
new file mode 100644
index 0000000000..f795f8c5d4
--- /dev/null
+++ b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-blocked-by-default-multiple-policies.html.ini
@@ -0,0 +1,4 @@
+[prefetch-blocked-by-default-multiple-policies.html]
+ expected: TIMEOUT
+ [Prefetch should fail when restricted by default-src]
+ expected: TIMEOUT
diff --git a/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-blocked-by-default.html.ini b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-blocked-by-default.html.ini
new file mode 100644
index 0000000000..3ee2b910a5
--- /dev/null
+++ b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-blocked-by-default.html.ini
@@ -0,0 +1,4 @@
+[prefetch-blocked-by-default.html]
+ expected: TIMEOUT
+ [Prefetch should fail when restricted by default-src]
+ expected: TIMEOUT
diff --git a/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-generate-directives.html.ini b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-generate-directives.html.ini
new file mode 100644
index 0000000000..38162f1d82
--- /dev/null
+++ b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-generate-directives.html.ini
@@ -0,0 +1,72 @@
+[prefetch-generate-directives.html]
+ [Test that script-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that script-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that img-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that img-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that connect-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that connect-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that object-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that object-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that font-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that font-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that manifest-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that manifest-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that media-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that media-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that style-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that style-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that child-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that child-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that frame-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that frame-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that worker-src enabled with everything else disabled allows prefetching]
+ expected: FAIL
+
+ [Test that worker-src enabled with default-src disabled allows prefetching]
+ expected: FAIL
+
+ [Test that permissive script-src-elem supersedes script-src]
+ expected: FAIL
+
+ [Test that permissive script-src supersedes script-src-elem]
+ expected: FAIL
diff --git a/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-ignores-prefetch-src.sub.html.ini b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-ignores-prefetch-src.sub.html.ini
new file mode 100644
index 0000000000..30e8ff98e7
--- /dev/null
+++ b/testing/web-platform/meta/content-security-policy/resource-hints/prefetch-ignores-prefetch-src.sub.html.ini
@@ -0,0 +1,4 @@
+[prefetch-ignores-prefetch-src.sub.html]
+ expected: TIMEOUT
+ [Prefetch should fail when restricted by default-src and allowed by unsupported prefetch-src directive (prefetch-src should be ignored)]
+ expected: TIMEOUT