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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/navigate-top-frame-upgrade.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/resources/navigate-top-frame-upgrade.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/navigate-top-frame-upgrade.php b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/navigate-top-frame-upgrade.php
new file mode 100644
index 0000000000000000000000000000000000000000..f2e9ecb85ac76fe777d81cc67370060b0f100907
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/resources/navigate-top-frame-upgrade.php
@@ -0,0 +1,11 @@
+<?php
+header("Content-Security-Policy: upgrade-insecure-requests");
+?>
+<!DOCTYPE html>
+<html>
+ <body>
+ <script>
+ window.top.location.href = <?php echo json_encode($_GET['url']) ?>;
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698