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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-origin-when-crossorigin.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-origin-when-crossorigin.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-origin-when-crossorigin.php
similarity index 68%
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-origin-when-crossorigin.php
index 8db9068d5d265c6e72bedd2959c7102fea5c1e0a..2f2ba078598959e292c237f6efc80a66777576d2 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-origin-when-crossorigin.php
@@ -1,5 +1,5 @@
<?php
-header("Referrer-Policy: origin");
+header("Referrer-Policy: no-referrer,origin-when-crossorigin");
?>
<!DOCTYPE html>
<head>
@@ -10,8 +10,8 @@ header("Referrer-Policy: origin");
<body>
</body>
<script>
- var policy = "origin";
- var expectedReferrer = document.location.origin + "/";
+ var policy = "no-referrer,origin-when-crossorigin";
+ var expectedReferrer = "";
var navigateTo = "cross-origin-no-downgrade";
</script>
<script src="resources/header-test.js"></script>

Powered by Google App Engine
This is Rietveld 408576698