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

Unified Diff: LayoutTests/http/tests/security/resources/echo-referrer-header.php

Issue 1117203002: Enforce referrer policies for workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix layout test indentation Created 5 years, 8 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
« no previous file with comments | « LayoutTests/http/tests/security/referrer-policy-worker-no-referrer.html ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/resources/echo-referrer-header.php
diff --git a/LayoutTests/http/tests/security/resources/echo-referrer-header.php b/LayoutTests/http/tests/security/resources/echo-referrer-header.php
new file mode 100644
index 0000000000000000000000000000000000000000..a5378c27ca01d833ab74ef3bb38cc7ab5a81ce2a
--- /dev/null
+++ b/LayoutTests/http/tests/security/resources/echo-referrer-header.php
@@ -0,0 +1,8 @@
+<?php
+$referrer = $_SERVER['HTTP_REFERER'];
+if ($referrer == "") {
+ echo "HTTP Referer header is empty";
+} else {
+ echo $referrer;
+}
+?>
« no previous file with comments | « LayoutTests/http/tests/security/referrer-policy-worker-no-referrer.html ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698