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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-no-referrer.php

Issue 2075053003: Add basic Referrer-Policy support for Documents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test expectation for tweaked console message Created 4 years, 6 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/basic-header-no-referrer.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-no-referrer.php b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-no-referrer.php
new file mode 100644
index 0000000000000000000000000000000000000000..0e37a311de69a168747f789253f80c4711049fc7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-no-referrer.php
@@ -0,0 +1,18 @@
+<?php
+header("Referrer-Policy: no-referrer");
+?>
+<!DOCTYPE html>
+<head>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="/resources/get-host-info.js"></script>
+</head>
+<body>
+</body>
+<script>
+ var policy = "no-referrer";
+ var expectedReferrer = "";
+ var navigateTo = "same-origin";
+</script>
+<script src="resources/header-test.js"></script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698