summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/fetch/orb
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/meta/fetch/orb
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/fetch/orb')
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/__dir__.ini1
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/content-range.sub.any.js.ini10
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/img-mime-types-coverage.tentative.sub.html.ini12
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/known-mime-type.sub.any.js.ini49
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/nosniff.sub.any.js.ini30
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/script-js-unlabeled-gziped.sub.html.ini3
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/script-unlabeled.sub.html.ini3
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/status.sub.any.js.ini24
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/status.sub.html.ini3
-rw-r--r--testing/web-platform/meta/fetch/orb/tentative/unknown-mime-type.sub.any.js.ini7
10 files changed, 142 insertions, 0 deletions
diff --git a/testing/web-platform/meta/fetch/orb/tentative/__dir__.ini b/testing/web-platform/meta/fetch/orb/tentative/__dir__.ini
new file mode 100644
index 0000000000..903a93027f
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/__dir__.ini
@@ -0,0 +1 @@
+prefs: [browser.opaqueResponseBlocking:true, browser.opaqueResponseBlocking.javascriptValidator:true]
diff --git a/testing/web-platform/meta/fetch/orb/tentative/content-range.sub.any.js.ini b/testing/web-platform/meta/fetch/orb/tentative/content-range.sub.any.js.ini
new file mode 100644
index 0000000000..3ed1cf1f65
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/content-range.sub.any.js.ini
@@ -0,0 +1,10 @@
+[content-range.sub.any.html]
+ prefs: [browser.opaqueResponseBlocking:true,
+ browser.opaqueResponseBlocking.filterFetchResponse:2]
+ [ORB should block opaque range of image/png not starting at zero, that isn't subsequent: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+
+[content-range.sub.any.worker.html]
+ [ORB should block opaque range of image/png not starting at zero, that isn't subsequent: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
diff --git a/testing/web-platform/meta/fetch/orb/tentative/img-mime-types-coverage.tentative.sub.html.ini b/testing/web-platform/meta/fetch/orb/tentative/img-mime-types-coverage.tentative.sub.html.ini
new file mode 100644
index 0000000000..a7fa83b42a
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/img-mime-types-coverage.tentative.sub.html.ini
@@ -0,0 +1,12 @@
+[img-mime-types-coverage.tentative.sub.html]
+ [ORB should block the response if Content-Type is: 'application/dash+xml'. ]
+ expected: FAIL
+
+ [ORB should block the response if Content-Type is: 'application/vnd.apple.mpegurl'. ]
+ expected: FAIL
+
+ [ORB should block the response if Content-Type is: 'audio/mpegurl'. ]
+ expected: FAIL
+
+ [ORB should block the response if Content-Type is: 'text/vtt'. ]
+ expected: FAIL
diff --git a/testing/web-platform/meta/fetch/orb/tentative/known-mime-type.sub.any.js.ini b/testing/web-platform/meta/fetch/orb/tentative/known-mime-type.sub.any.js.ini
new file mode 100644
index 0000000000..1502f4e6d2
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/known-mime-type.sub.any.js.ini
@@ -0,0 +1,49 @@
+[known-mime-type.sub.any.html]
+ prefs: [browser.opaqueResponseBlocking:true, browser.opaqueResponseBlocking.filterFetchResponse:2]
+ [ORB should block opaque font/ttf: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque font/ttf: <script src=...>]
+ expected: FAIL
+
+ [ORB should block opaque text/plain: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque text/plain: <script src=...>]
+ expected: FAIL
+
+ [ORB should block opaque application/json (non-empty): fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque application/json (non-empty): <script src=...>]
+ expected: FAIL
+
+ [ORB should block opaque application/json (empty): fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque application/json (empty): <script src=...>]
+ expected: FAIL
+
+ [ORB should block opaque application/json which contains non ascii characters: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque application/json which contains non ascii characters: <script src=...>]
+ expected: FAIL
+
+
+[known-mime-type.sub.any.worker.html]
+ prefs: [browser.opaqueResponseBlocking:true, browser.opaqueResponseBlocking.filterFetchResponse:2]
+ [ORB should block opaque font/ttf: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque text/plain: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque application/json (non-empty): fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque application/json (empty): fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque application/json which contains non ascii characters: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
diff --git a/testing/web-platform/meta/fetch/orb/tentative/nosniff.sub.any.js.ini b/testing/web-platform/meta/fetch/orb/tentative/nosniff.sub.any.js.ini
new file mode 100644
index 0000000000..05308ec69f
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/nosniff.sub.any.js.ini
@@ -0,0 +1,30 @@
+[nosniff.sub.any.html]
+ prefs: [browser.opaqueResponseBlocking:true,
+ browser.opaqueResponseBlocking.filterFetchResponse:2]
+
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [ORB should block opaque text/plain with nosniff: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque-response-blocklisted MIME type with nosniff: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque response with empty Content-Type and nosniff: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+
+[nosniff.sub.any.worker.html]
+ prefs: [browser.opaqueResponseBlocking:true,
+ browser.opaqueResponseBlocking.filterFetchResponse:2]
+
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [ORB should block opaque text/plain with nosniff: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque-response-blocklisted MIME type with nosniff: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque response with empty Content-Type and nosniff: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
diff --git a/testing/web-platform/meta/fetch/orb/tentative/script-js-unlabeled-gziped.sub.html.ini b/testing/web-platform/meta/fetch/orb/tentative/script-js-unlabeled-gziped.sub.html.ini
new file mode 100644
index 0000000000..de29ba55e7
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/script-js-unlabeled-gziped.sub.html.ini
@@ -0,0 +1,3 @@
+[script-js-unlabeled-gziped.sub.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/fetch/orb/tentative/script-unlabeled.sub.html.ini b/testing/web-platform/meta/fetch/orb/tentative/script-unlabeled.sub.html.ini
new file mode 100644
index 0000000000..9b534ba160
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/script-unlabeled.sub.html.ini
@@ -0,0 +1,3 @@
+[script-unlabeled.sub.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/fetch/orb/tentative/status.sub.any.js.ini b/testing/web-platform/meta/fetch/orb/tentative/status.sub.any.js.ini
new file mode 100644
index 0000000000..a29326d495
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/status.sub.any.js.ini
@@ -0,0 +1,24 @@
+[status.sub.any.html]
+ prefs: [browser.opaqueResponseBlocking:true,
+ browser.opaqueResponseBlocking.filterFetchResponse:2]
+
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [ORB should block opaque-response-blocklisted MIME type with status 206: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque response with non-ok status: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+
+[status.sub.any.worker.html]
+ prefs: [browser.opaqueResponseBlocking:true,
+ browser.opaqueResponseBlocking.filterFetchResponse:2]
+
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [ORB should block opaque-response-blocklisted MIME type with status 206: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
+
+ [ORB should block opaque response with non-ok status: fetch(..., {mode: "no-cors"})]
+ expected: FAIL
diff --git a/testing/web-platform/meta/fetch/orb/tentative/status.sub.html.ini b/testing/web-platform/meta/fetch/orb/tentative/status.sub.html.ini
new file mode 100644
index 0000000000..e5e9ca3387
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/status.sub.html.ini
@@ -0,0 +1,3 @@
+[status.sub.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/fetch/orb/tentative/unknown-mime-type.sub.any.js.ini b/testing/web-platform/meta/fetch/orb/tentative/unknown-mime-type.sub.any.js.ini
new file mode 100644
index 0000000000..e4818080cb
--- /dev/null
+++ b/testing/web-platform/meta/fetch/orb/tentative/unknown-mime-type.sub.any.js.ini
@@ -0,0 +1,7 @@
+[unknown-mime-type.sub.any.worker.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+
+[unknown-mime-type.sub.any.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]