From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/https-upgrades/README | 19 ++++++++++++++ .../resources/pass-with-referrer.html | 13 ++++++++++ .../tests/https-upgrades/resources/pass.html | 10 ++++++++ .../https-upgrades/tentative/fallback.sub.html | 24 +++++++++++++++++ ...ting-to-http-redirecting-to-http.https.sub.html | 30 ++++++++++++++++++++++ .../http-redirecting-to-http.https.sub.html | 29 +++++++++++++++++++++ .../http-redirecting-to-https.https.sub.html | 29 +++++++++++++++++++++ .../tentative/referrer.https.sub.html | 29 +++++++++++++++++++++ .../tentative/upgrade.https.sub.html | 24 +++++++++++++++++ 9 files changed, 207 insertions(+) create mode 100644 testing/web-platform/tests/https-upgrades/README create mode 100644 testing/web-platform/tests/https-upgrades/resources/pass-with-referrer.html create mode 100644 testing/web-platform/tests/https-upgrades/resources/pass.html create mode 100644 testing/web-platform/tests/https-upgrades/tentative/fallback.sub.html create mode 100644 testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-http-redirecting-to-http.https.sub.html create mode 100644 testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-http.https.sub.html create mode 100644 testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-https.https.sub.html create mode 100644 testing/web-platform/tests/https-upgrades/tentative/referrer.https.sub.html create mode 100644 testing/web-platform/tests/https-upgrades/tentative/upgrade.https.sub.html (limited to 'testing/web-platform/tests/https-upgrades') diff --git a/testing/web-platform/tests/https-upgrades/README b/testing/web-platform/tests/https-upgrades/README new file mode 100644 index 0000000000..e213900f3a --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/README @@ -0,0 +1,19 @@ +This directory tests conformance to HTTPS Upgrading feature of Fetch spec. +HTTPS Upgrading automatically upgrades main frame HTTP navigations to HTTPS and +falls back to the original HTTP URL if the upgraded HTTPS URL isn't available. + +In practice, HTTPS Upgrading won't work properly with URLs with non-default +ports. This is because the upgrade logic can't guess the HTTPS port and has to +use the same non-default port number for the upgraded HTTPS URL as the HTTP URL. +In other words, upgrading http://example.com:8123 to https://example.com:8123 +won't work because the server can't serve both http and https on the same port. + +The tests in this directory rely on this fact: +- If HTTPS Upgrading is enabled, http://{{host}}:{{https-port}} will be upgraded + to https://{{host}}:{{https-port}} and load properly. +- Otherwise, http://{{host}}:{{https-port}} will remain unchanged and won't + load, since the server serves http URLs on {{http-port}} instead. + +Therefore, the simplest way to run these tests is through +[wpt.live](http://wpt.live/https-upgrades) which serves the files over default +ports. diff --git a/testing/web-platform/tests/https-upgrades/resources/pass-with-referrer.html b/testing/web-platform/tests/https-upgrades/resources/pass-with-referrer.html new file mode 100644 index 0000000000..be978c16dc --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/resources/pass-with-referrer.html @@ -0,0 +1,13 @@ + + + + + + diff --git a/testing/web-platform/tests/https-upgrades/resources/pass.html b/testing/web-platform/tests/https-upgrades/resources/pass.html new file mode 100644 index 0000000000..5c7ca343e9 --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/resources/pass.html @@ -0,0 +1,10 @@ + + + + + + diff --git a/testing/web-platform/tests/https-upgrades/tentative/fallback.sub.html b/testing/web-platform/tests/https-upgrades/tentative/fallback.sub.html new file mode 100644 index 0000000000..8fdf0dc836 --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/tentative/fallback.sub.html @@ -0,0 +1,24 @@ + + + + HTTPS Upgrades: Fallback. + + + + + + + + + diff --git a/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-http-redirecting-to-http.https.sub.html b/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-http-redirecting-to-http.https.sub.html new file mode 100644 index 0000000000..96892c95a9 --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-http-redirecting-to-http.https.sub.html @@ -0,0 +1,30 @@ + + + + HTTPS Upgrades: HTTP URL redirecting to HTTP URL redirecting to HTTP URL + + + + + + + + + diff --git a/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-http.https.sub.html b/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-http.https.sub.html new file mode 100644 index 0000000000..24d50a71bc --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-http.https.sub.html @@ -0,0 +1,29 @@ + + + + HTTPS Upgrades: HTTP URL redirecting to HTTP + + + + + + + + + diff --git a/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-https.https.sub.html b/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-https.https.sub.html new file mode 100644 index 0000000000..13a7f1698f --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/tentative/http-redirecting-to-https.https.sub.html @@ -0,0 +1,29 @@ + + + + HTTPS Upgrades: HTTP URL redirecting to HTTPS + + + + + + + + + diff --git a/testing/web-platform/tests/https-upgrades/tentative/referrer.https.sub.html b/testing/web-platform/tests/https-upgrades/tentative/referrer.https.sub.html new file mode 100644 index 0000000000..3cd83ba561 --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/tentative/referrer.https.sub.html @@ -0,0 +1,29 @@ + + + + HTTPS Upgrades: Upgrade. + + + + + + + + + + + diff --git a/testing/web-platform/tests/https-upgrades/tentative/upgrade.https.sub.html b/testing/web-platform/tests/https-upgrades/tentative/upgrade.https.sub.html new file mode 100644 index 0000000000..71a1fe1dde --- /dev/null +++ b/testing/web-platform/tests/https-upgrades/tentative/upgrade.https.sub.html @@ -0,0 +1,24 @@ + + + + HTTPS Upgrades: Upgrade. + + + + + + + + + -- cgit v1.2.3