diff options
Diffstat (limited to 'testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/iframe-link-upgrade.sub.html')
-rw-r--r-- | testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/iframe-link-upgrade.sub.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/iframe-link-upgrade.sub.html b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/iframe-link-upgrade.sub.html new file mode 100644 index 0000000000..ed058b6154 --- /dev/null +++ b/testing/web-platform/tests/upgrade-insecure-requests/link-upgrade/iframe-link-upgrade.sub.html @@ -0,0 +1,11 @@ +<!-- + This document has set "Content-Security-Policy: upgrade-insecure-requests". It + contains an iframe. This iframe clicks on a link to the same host. The link + must be upgraded. + + This is a bit of a hack. UPGRADE doesn't upgrade the port number. So if + the url is not upgraded, the url is invalid (http over the https port). + The expected behavior is that the url is upgraded and the page loads. +--> +<iframe src= "./resources/click-on-link.sub.html?url=http://{{host}}:{{ports[https][0]}}/upgrade-insecure-requests/link-upgrade/resources/post-message-to-opener.sub.html%3Fmessage=iframe-link-upgrade"> +</iframe> |