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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-upgrade.https.php

Issue 2538143004: Upgrade-insecure-requests: 4 new tests about links upgrade.
Patch Set: Upgrade-insecure-requests: 4 new tests about links upgrade. 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/iframe-top-navigation-no-upgrade.https.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-upgrade.https.php b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-upgrade.https.php
new file mode 100644
index 0000000000000000000000000000000000000000..3dd1944ace281e395559a4b76fff4dd11c5d06b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-upgrade.https.php
@@ -0,0 +1,25 @@
+<?php
+header("Content-Security-Policy: upgrade-insecure-requests");
+?>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Upgrade Insecure Requests: top-frame navigation inside iframe (no upgrade expected)</title>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+ </script>
+
+ </head>
+ <body>
+ <!-- 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. -->
+ <iframe
+ sandbox="allow-scripts allow-top-navigation"
+ src="https://example.test:8443/security/upgrade-insecure-requests/resources/navigate-top-frame.php?url=http://example.test:8080/misc/resources/success-notify-done.html"
+ ></iframe>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698