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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-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-no-upgrade-2.https.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-upgrade-2.https.php b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-upgrade-2.https.php
new file mode 100644
index 0000000000000000000000000000000000000000..fa224bba75dbeade2b69cee8e32ec7e30953c026
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-upgrade-2.https.php
@@ -0,0 +1,22 @@
+<!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-upgrade.php?url=http://127.0.0.1:8080/misc/resources/success-notify-done.html"
+ ></iframe>
+ </body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/iframe-top-navigation-no-upgrade-2.https-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698