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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-same-origin-with-origin.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-same-origin-with-origin.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-same-origin-with-origin.php b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-same-origin-with-origin.php
new file mode 100644
index 0000000000000000000000000000000000000000..ab37e186d3a9b52374fceb5bb9119ec7143bd9ca
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/basic-header-same-origin-with-origin.php
@@ -0,0 +1,18 @@
+<?php
+header("Referrer-Policy: origin");
+?>
+<!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 = "origin";
+ var expectedReferrer = document.location.origin + "/";
+ var navigateTo = "same-origin";
+</script>
+<script src="resources/header-test.js"></script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698