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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/https-header-top-level-browser-initiated.php

Issue 2462513003: PlzNavigate: Add missing Upgrade-Insecure-Requests header. (Closed)
Patch Set: PlzNavigate:Add missing Upgrade-Insecure-Requests header. Created 4 years, 2 months 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/https-header-top-level-browser-initiated.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/https-header-top-level-browser-initiated.php b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/https-header-top-level-browser-initiated.php
new file mode 100644
index 0000000000000000000000000000000000000000..459237997676e897f26be7bce2dd91d161196575
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/https-header-top-level-browser-initiated.php
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script>
+ test(function () {
+ <?php echo "httpsHeader = \"", $_SERVER['HTTP_UPGRADE_INSECURE_REQUESTS'], "\";" ?>;
+ assert_equals(httpsHeader, "1");
+ }, "Verify that the browser-initiated request was delivered with an 'Upgrade-Insecure-Requests' header.");
+ </script>
+</head>
+</html>

Powered by Google App Engine
This is Rietveld 408576698