summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/private-network-access
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /testing/web-platform/tests/fetch/private-network-access
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/fetch/private-network-access')
-rw-r--r--testing/web-platform/tests/fetch/private-network-access/anchor.tentative.https.window.js38
-rw-r--r--testing/web-platform/tests/fetch/private-network-access/resources/support.sub.js21
-rw-r--r--testing/web-platform/tests/fetch/private-network-access/window-open-existing.tentative.https.window.js38
-rw-r--r--testing/web-platform/tests/fetch/private-network-access/window-open.tentative.https.window.js38
4 files changed, 0 insertions, 135 deletions
diff --git a/testing/web-platform/tests/fetch/private-network-access/anchor.tentative.https.window.js b/testing/web-platform/tests/fetch/private-network-access/anchor.tentative.https.window.js
index f5473868b7..4e860ad381 100644
--- a/testing/web-platform/tests/fetch/private-network-access/anchor.tentative.https.window.js
+++ b/testing/web-platform/tests/fetch/private-network-access/anchor.tentative.https.window.js
@@ -149,44 +149,6 @@ subsetTestByKey("from-public", promise_test_parallel, t => anchorTest(t, {
expected: NavigationTestResult.SUCCESS,
}), "public to public: no preflight required.");
-subsetTestByKey(
- 'from-public', promise_test_parallel,
- t => anchorTest(t, {
- source: {server: Server.HTTPS_PUBLIC},
- target: {
- server: Server.HTTPS_PUBLIC,
- behavior: {
- redirect: preflightUrl({
- server: Server.HTTPS_PRIVATE,
- behavior: {
- preflight: PreflightBehavior.noCorsHeader(token()),
- }
- }),
- }
- },
- expected: NavigationTestResult.FAILURE,
- }),
- 'public to public redirected to private: missing CORS headers.');
-
-subsetTestByKey(
- 'from-public', promise_test_parallel,
- t => anchorTest(t, {
- source: {server: Server.HTTPS_PUBLIC},
- target: {
- server: Server.HTTPS_PUBLIC,
- behavior: {
- redirect: preflightUrl({
- server: Server.HTTPS_PRIVATE,
- behavior: {
- preflight: PreflightBehavior.navigation(token()),
- }
- }),
- }
- },
- expected: NavigationTestResult.SUCCESS,
- }),
- 'public to public to private: success.');
-
// The following tests verify that `CSP: treat-as-public-address` makes
// documents behave as if they had been served from a public IP address.
diff --git a/testing/web-platform/tests/fetch/private-network-access/resources/support.sub.js b/testing/web-platform/tests/fetch/private-network-access/resources/support.sub.js
index 1cb432b787..7d133b0288 100644
--- a/testing/web-platform/tests/fetch/private-network-access/resources/support.sub.js
+++ b/testing/web-platform/tests/fetch/private-network-access/resources/support.sub.js
@@ -480,13 +480,6 @@ const NavigationTestResult = {
};
async function windowOpenTest(t, { source, target, expected }) {
- if (target.behavior && target.behavior.redirect) {
- target.behavior.redirect.searchParams.set('file', 'openee.html');
- target.behavior.redirect.searchParams.set(
- 'file-if-no-preflight-received',
- 'no-preflight-received.html',
- );
- }
const targetUrl = preflightUrl(target);
targetUrl.searchParams.set("file", "openee.html");
targetUrl.searchParams.set(
@@ -514,13 +507,6 @@ async function windowOpenTest(t, { source, target, expected }) {
}
async function windowOpenExistingTest(t, { source, target, expected }) {
- if (target.behavior && target.behavior.redirect) {
- target.behavior.redirect.searchParams.set('file', 'openee.html');
- target.behavior.redirect.searchParams.set(
- 'file-if-no-preflight-received',
- 'no-preflight-received.html',
- );
- }
const targetUrl = preflightUrl(target);
targetUrl.searchParams.set("file", "openee.html");
targetUrl.searchParams.set(
@@ -549,13 +535,6 @@ async function windowOpenExistingTest(t, { source, target, expected }) {
}
async function anchorTest(t, { source, target, expected }) {
- if (target.behavior && target.behavior.redirect) {
- target.behavior.redirect.searchParams.set('file', 'openee.html');
- target.behavior.redirect.searchParams.set(
- 'file-if-no-preflight-received',
- 'no-preflight-received.html',
- );
- }
const targetUrl = preflightUrl(target);
targetUrl.searchParams.set("file", "openee.html");
targetUrl.searchParams.set(
diff --git a/testing/web-platform/tests/fetch/private-network-access/window-open-existing.tentative.https.window.js b/testing/web-platform/tests/fetch/private-network-access/window-open-existing.tentative.https.window.js
index 565a2117a8..6a2a624fc8 100644
--- a/testing/web-platform/tests/fetch/private-network-access/window-open-existing.tentative.https.window.js
+++ b/testing/web-platform/tests/fetch/private-network-access/window-open-existing.tentative.https.window.js
@@ -167,44 +167,6 @@ subsetTestByKey(
}),
'public to public: no preflight required.');
-subsetTestByKey(
- 'from-public', promise_test_parallel,
- t => windowOpenExistingTest(t, {
- source: {server: Server.HTTPS_PUBLIC},
- target: {
- server: Server.HTTPS_PUBLIC,
- behavior: {
- redirect: preflightUrl({
- server: Server.HTTPS_PRIVATE,
- behavior: {
- preflight: PreflightBehavior.noCorsHeader(token()),
- }
- }),
- }
- },
- expected: NavigationTestResult.FAILURE,
- }),
- 'public to public redirected to private: missing CORS headers.');
-
-subsetTestByKey(
- 'from-public', promise_test_parallel,
- t => windowOpenExistingTest(t, {
- source: {server: Server.HTTPS_PUBLIC},
- target: {
- server: Server.HTTPS_PUBLIC,
- behavior: {
- redirect: preflightUrl({
- server: Server.HTTPS_PRIVATE,
- behavior: {
- preflight: PreflightBehavior.navigation(token()),
- }
- }),
- }
- },
- expected: NavigationTestResult.SUCCESS,
- }),
- 'public to public to private: success.');
-
// The following tests verify that `CSP: treat-as-public-address` makes
// documents behave as if they had been served from a public IP address.
diff --git a/testing/web-platform/tests/fetch/private-network-access/window-open.tentative.https.window.js b/testing/web-platform/tests/fetch/private-network-access/window-open.tentative.https.window.js
index 42d70af4e4..6793d1f3b4 100644
--- a/testing/web-platform/tests/fetch/private-network-access/window-open.tentative.https.window.js
+++ b/testing/web-platform/tests/fetch/private-network-access/window-open.tentative.https.window.js
@@ -149,44 +149,6 @@ subsetTestByKey("from-public", promise_test_parallel, t => windowOpenTest(t, {
expected: NavigationTestResult.SUCCESS,
}), "public to public: no preflight required.");
-subsetTestByKey(
- 'from-public', promise_test_parallel,
- t => windowOpenTest(t, {
- source: {server: Server.HTTPS_PUBLIC},
- target: {
- server: Server.HTTPS_PUBLIC,
- behavior: {
- redirect: preflightUrl({
- server: Server.HTTPS_PRIVATE,
- behavior: {
- preflight: PreflightBehavior.noCorsHeader(token()),
- }
- }),
- }
- },
- expected: NavigationTestResult.FAILURE,
- }),
- 'public to public redirected to private: missing CORS headers.');
-
-subsetTestByKey(
- 'from-public', promise_test_parallel,
- t => windowOpenTest(t, {
- source: {server: Server.HTTPS_PUBLIC},
- target: {
- server: Server.HTTPS_PUBLIC,
- behavior: {
- redirect: preflightUrl({
- server: Server.HTTPS_PRIVATE,
- behavior: {
- preflight: PreflightBehavior.navigation(token()),
- }
- }),
- }
- },
- expected: NavigationTestResult.SUCCESS,
- }),
- 'public to public to private: success.');
-
// The following tests verify that `CSP: treat-as-public-address` makes
// documents behave as if they had been served from a public IP address.