Index: LayoutTests/http/tests/security/resources/green-if-referrer-is-full-url.php |
diff --git a/LayoutTests/http/tests/security/resources/green-if-no-referrer.php b/LayoutTests/http/tests/security/resources/green-if-referrer-is-full-url.php |
similarity index 54% |
copy from LayoutTests/http/tests/security/resources/green-if-no-referrer.php |
copy to LayoutTests/http/tests/security/resources/green-if-referrer-is-full-url.php |
index f2f46efc48f78d75b854a266b7e6052e2eb3f89d..c9083d3c6aef16b4bafac7ca2d4dbd3cc50cffc4 100644 |
--- a/LayoutTests/http/tests/security/resources/green-if-no-referrer.php |
+++ b/LayoutTests/http/tests/security/resources/green-if-referrer-is-full-url.php |
@@ -1,9 +1,9 @@ |
<?php |
header('Content-Type: image/png'); |
-if ($_SERVER['HTTP_REFERER'] != '') { |
+if ($_SERVER['HTTP_REFERER'] != 'http://127.0.0.1:8000/security/referrer-policy-attribute-img-unsafe-url.html') { |
$img = 'red200x100.png'; |
} else { |
$img = 'green250x50.png'; |
} |
echo file_get_contents($img); |
-?> |
+?> |