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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-upgrade.https.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-upgrade.https.php b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-upgrade.https.php
new file mode 100644
index 0000000000000000000000000000000000000000..f40152dbaabad04fe7670f1602bea5ceb567db05
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/basic-link-upgrade.https.php
@@ -0,0 +1,26 @@
+<?php
+header("Content-Security-Policy: upgrade-insecure-requests");
+?>
+<!DOCTYPE html>
+<html>
+ <title>Upgrade Insecure Requests: link 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 we
+ specify this non-existent URL ('http' over port 8443). If UPGRADE doesn't
+ work, it won't load.
+ The expected behavior is that the url is upgraded and the page loaded. -->
+ <a id="link" href="http://127.0.0.1:8443/resources/notify-done.html">Click me</a>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698