| Index: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-no-upgrade.https.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-no-upgrade.https.php b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-no-upgrade.https.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ce13a7af21d10f33e79b461dbe52e5c0be5b4d80
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-no-upgrade.https.php
|
| @@ -0,0 +1,25 @@
|
| +<?php
|
| +header("Content-Security-Policy: upgrade-insecure-requests");
|
| +?>
|
| +<!DOCTYPE html>
|
| +<html>
|
| + <title>Upgrade Insecure Requests: link no upgrade.</title>
|
| + <head>
|
| + <script>
|
| + if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + }
|
| +
|
| + function click() {
|
| + document.getElementById("link").click();
|
| + }
|
| + </script>
|
| + </head>
|
| + <body onload="click()">
|
| + <!-- This is a bit of a hack. UPGRADE doesn't upgrade the port number. So if
|
| + the url is upgraded, the url becomes invalid (https over the 8080 port).
|
| + The expected behavior is that the url is not upgraded and the page load. -->
|
| + <a id="link" href="http://example.test:8080/resources/notify-done.html">Click me</a>
|
| + </body>
|
| +</html>
|
|
|