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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-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 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 we
21 specify this non-existent URL ('http' over port 8443). If UPGRADE doesn't
22 work, it won't load.
23 The expected behavior is that the url is upgraded and the page loaded. -->
24 <a id="link" href="http://127.0.0.1:8443/resources/notify-done.html">Click m e</a>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698