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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-upgrade-2.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-upgrade-2.https.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-upgrade-2.https.php b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-upgrade-2.https.php
new file mode 100644
index 0000000000000000000000000000000000000000..a42153e1482cc6807eb32e4a039c08f0ca3668ce
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-upgrade-2.https.php
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Upgrade Insecure Requests: top-frame navigation inside iframe (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 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. -->
+ <iframe
+ sandbox="allow-scripts allow-top-navigation"
+ src="https://example.test:8443/security/upgrade-insecure-requests/resources/navigate-top-frame-upgrade.php?url=http://example.test:8443/misc/resources/success-notify-done.html"
+ ></iframe>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698