summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/loading/early-hints
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/meta/loading/early-hints')
-rw-r--r--testing/web-platform/meta/loading/early-hints/__dir__.ini2
-rw-r--r--testing/web-platform/meta/loading/early-hints/coep-early-hints-none-final-require-corp.h2.window.js.ini3
-rw-r--r--testing/web-platform/meta/loading/early-hints/coep-early-hints-require-corp-final-none.h2.window.js.ini3
-rw-r--r--testing/web-platform/meta/loading/early-hints/iframe-pdf.h2.window.js.ini5
-rw-r--r--testing/web-platform/meta/loading/early-hints/invalid-headers-in-early-hints.h2.window.js.ini6
-rw-r--r--testing/web-platform/meta/loading/early-hints/modulepreload-in-early-hints.h2.window.js.ini3
-rw-r--r--testing/web-platform/meta/loading/early-hints/preload-with-csp-document-disallow.h2.window.js.ini4
-rw-r--r--testing/web-platform/meta/loading/early-hints/preload-without-csp-document-disallow.h2.window.js.ini4
-rw-r--r--testing/web-platform/meta/loading/early-hints/referrer-policy-unsafe-url.h2.window.js.ini3
9 files changed, 33 insertions, 0 deletions
diff --git a/testing/web-platform/meta/loading/early-hints/__dir__.ini b/testing/web-platform/meta/loading/early-hints/__dir__.ini
new file mode 100644
index 0000000000..cb47433729
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/__dir__.ini
@@ -0,0 +1,2 @@
+lsan-allowed: [mozilla::net::AddStaticElement]
+prefs: [network.early-hints.enabled: true]
diff --git a/testing/web-platform/meta/loading/early-hints/coep-early-hints-none-final-require-corp.h2.window.js.ini b/testing/web-platform/meta/loading/early-hints/coep-early-hints-none-final-require-corp.h2.window.js.ini
new file mode 100644
index 0000000000..230c1f8838
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/coep-early-hints-none-final-require-corp.h2.window.js.ini
@@ -0,0 +1,3 @@
+[coep-early-hints-none-final-require-corp.h2.window.html]
+ [Early Hints COEP mismatch: Early Hints policy = unsafe-none, final response policy = require-corp.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/loading/early-hints/coep-early-hints-require-corp-final-none.h2.window.js.ini b/testing/web-platform/meta/loading/early-hints/coep-early-hints-require-corp-final-none.h2.window.js.ini
new file mode 100644
index 0000000000..6f84088d60
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/coep-early-hints-require-corp-final-none.h2.window.js.ini
@@ -0,0 +1,3 @@
+[coep-early-hints-require-corp-final-none.h2.window.html]
+ [Early Hints COEP mismatch: Early Hints policy = require-corp, final response policy = unsafe-none.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/loading/early-hints/iframe-pdf.h2.window.js.ini b/testing/web-platform/meta/loading/early-hints/iframe-pdf.h2.window.js.ini
new file mode 100644
index 0000000000..396417dfb9
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/iframe-pdf.h2.window.js.ini
@@ -0,0 +1,5 @@
+[iframe-pdf.h2.window.html]
+ [Early hints for an iframe of which content is pdf should be ignored.]
+ expected:
+ if (os == 'android'): [PASS, FAIL]
+ FAIL
diff --git a/testing/web-platform/meta/loading/early-hints/invalid-headers-in-early-hints.h2.window.js.ini b/testing/web-platform/meta/loading/early-hints/invalid-headers-in-early-hints.h2.window.js.ini
new file mode 100644
index 0000000000..9156ed0d70
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/invalid-headers-in-early-hints.h2.window.js.ini
@@ -0,0 +1,6 @@
+[invalid-headers-in-early-hints.h2.window.html]
+ [Early Hints contains invalid header: newline byte]
+ expected: FAIL
+
+ [Early Hints contains invalid header: nul byte]
+ expected: FAIL
diff --git a/testing/web-platform/meta/loading/early-hints/modulepreload-in-early-hints.h2.window.js.ini b/testing/web-platform/meta/loading/early-hints/modulepreload-in-early-hints.h2.window.js.ini
new file mode 100644
index 0000000000..1265fc0cc1
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/modulepreload-in-early-hints.h2.window.js.ini
@@ -0,0 +1,3 @@
+[modulepreload-in-early-hints.h2.window.html]
+ [Modulepreload in an early hints.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/loading/early-hints/preload-with-csp-document-disallow.h2.window.js.ini b/testing/web-platform/meta/loading/early-hints/preload-with-csp-document-disallow.h2.window.js.ini
new file mode 100644
index 0000000000..56703320b6
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/preload-with-csp-document-disallow.h2.window.js.ini
@@ -0,0 +1,4 @@
+[preload-with-csp-document-disallow.h2.window.html]
+ expected: TIMEOUT
+ [Early hints preload CSP = allowed, document disallowed the preload later.]
+ expected: TIMEOUT
diff --git a/testing/web-platform/meta/loading/early-hints/preload-without-csp-document-disallow.h2.window.js.ini b/testing/web-platform/meta/loading/early-hints/preload-without-csp-document-disallow.h2.window.js.ini
new file mode 100644
index 0000000000..320bdf496b
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/preload-without-csp-document-disallow.h2.window.js.ini
@@ -0,0 +1,4 @@
+[preload-without-csp-document-disallow.h2.window.html]
+ expected: TIMEOUT
+ [Early hints preload CSP = absent, document disallowed the preload later.]
+ expected: TIMEOUT
diff --git a/testing/web-platform/meta/loading/early-hints/referrer-policy-unsafe-url.h2.window.js.ini b/testing/web-platform/meta/loading/early-hints/referrer-policy-unsafe-url.h2.window.js.ini
new file mode 100644
index 0000000000..b2692b6369
--- /dev/null
+++ b/testing/web-platform/meta/loading/early-hints/referrer-policy-unsafe-url.h2.window.js.ini
@@ -0,0 +1,3 @@
+[referrer-policy-unsafe-url.h2.window.html]
+ [Referrer policy: unsafe-url]
+ expected: FAIL