summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/https-upgrades/README
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/tests/https-upgrades/README
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/tests/https-upgrades/README')
-rw-r--r--testing/web-platform/tests/https-upgrades/README19
1 files changed, 19 insertions, 0 deletions
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.