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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-always.php

Issue 2278823004: Stop supporting legacy keywords in Referrer-Policy header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jochen comment Created 4 years, 4 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/legacy-always.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-cross-origin-with-origin.php b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-always.php
similarity index 76%
copy from third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-cross-origin-with-origin.php
copy to third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-always.php
index 8db9068d5d265c6e72bedd2959c7102fea5c1e0a..9a21c6299433815f5b27ab35294ae98b01ad67ca 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-cross-origin-with-origin.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-always.php
@@ -1,5 +1,5 @@
<?php
-header("Referrer-Policy: origin");
+header("Referrer-Policy: origin-when-cross-origin,always");
?>
<!DOCTYPE html>
<head>
@@ -10,7 +10,7 @@ header("Referrer-Policy: origin");
<body>
</body>
<script>
- var policy = "origin";
+ var policy = "origin-when-cross-origin,always";
var expectedReferrer = document.location.origin + "/";
var navigateTo = "cross-origin-no-downgrade";
</script>

Powered by Google App Engine
This is Rietveld 408576698