Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-no-upgrade.https.php

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 header("Content-Security-Policy: upgrade-insecure-requests");
3 ?>
4 <!DOCTYPE html>
5 <html>
6 <title>Upgrade Insecure Requests: link no upgrade.</title>
7 <head>
8 <script>
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
12 }
13
14 function click() {
15 document.getElementById("link").click();
16 }
17 </script>
18 </head>
19 <body onload="click()">
20 <!-- This is a bit of a hack. UPGRADE doesn't upgrade the port number. So if
21 the url is upgraded, the url becomes invalid (https over the 8080 port).
22 The expected behavior is that the url is not upgraded and the page load. -->
23 <a id="link" href="http://example.test:8080/resources/notify-done.html">Clic k me</a>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698