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

Unified Diff: LayoutTests/http/tests/security/resources/green-if-no-referrer.php

Issue 534233002: Make sure to use the correct referrer policy in the FrameFetchContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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: LayoutTests/http/tests/security/resources/green-if-no-referrer.php
diff --git a/LayoutTests/http/tests/security/resources/green-if-no-referrer.php b/LayoutTests/http/tests/security/resources/green-if-no-referrer.php
new file mode 100644
index 0000000000000000000000000000000000000000..f2f46efc48f78d75b854a266b7e6052e2eb3f89d
--- /dev/null
+++ b/LayoutTests/http/tests/security/resources/green-if-no-referrer.php
@@ -0,0 +1,9 @@
+<?php
+header('Content-Type: image/png');
+if ($_SERVER['HTTP_REFERER'] != '') {
+ $img = 'red200x100.png';
+} else {
+ $img = 'green250x50.png';
+}
+echo file_get_contents($img);
+?>

Powered by Google App Engine
This is Rietveld 408576698