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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/redirect-to.php

Issue 2393633006: Send net's ReferrerPolicy back to Blink while following redirects (Closed)
Patch Set: Remove unnecessary referrer calculation in DocumentThreadableLoader 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/referrerPolicyHeader/resources/redirect-to.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/redirect-to.php b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/redirect-to.php
index be1c68ad8463507fa27169f95fd1b48d89b67f4c..c11cc4747cd9dec9b7242353c4e37396ee6d4efb 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/redirect-to.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/resources/redirect-to.php
@@ -1,4 +1,7 @@
<?php
header('Access-Control-Allow-Origin: *');
header("Location: " . $_GET["location"]);
+if ($_GET["referrerpolicy"]) {
+ header("Referrer-Policy: " . $_GET["referrerpolicy"]);
+}
?>

Powered by Google App Engine
This is Rietveld 408576698