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

Side by Side Diff: LayoutTests/http/tests/security/resources/green-if-referrer-is-full-url.php

Issue 1291613010: Implement referrerpolicy attribute for img elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: actually fix webexposed test this time Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 header('Content-Type: image/png'); 2 header('Content-Type: image/png');
3 if ($_SERVER['HTTP_REFERER'] != '') { 3 if ($_SERVER['HTTP_REFERER'] != 'http://127.0.0.1:8000/security/referrer-policy- attribute-img-unsafe-url.html') {
4 $img = 'red200x100.png'; 4 $img = 'red200x100.png';
5 } else { 5 } else {
6 $img = 'green250x50.png'; 6 $img = 'green250x50.png';
7 } 7 }
8 echo file_get_contents($img); 8 echo file_get_contents($img);
9 ?> 9 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698