Files
Mustafa Emre Acer ca032d7686 Bug 1867179 [wpt PR 43405] - Add a README for HTTPS Upgrades WPTs, a=testonly
Automatic update from web-platform-tests
Add a README for HTTPS Upgrades WPTs

Bug: 1394910
Change-Id: I1f574d366f327f998173be305825256aeafcb797
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5068524
Reviewed-by: Carlos IL <[email protected]>
Commit-Queue: Mustafa Emre Acer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1230933}

--

wpt-commits: 2eaa093c8c531636064827d52240912883051cca
wpt-pr: 43405
2023-12-12 10:28:04 +00:00

20 lines
1.1 KiB
Plaintext

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.