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

Side by Side Diff: LayoutTests/http/tests/security/referrer-policy-attribute-img-removeattr.html

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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <img src="http://127.0.0.1:8000/security/resources/green-if-referrer-is-orig in.php"
7 referrerpolicy="origin" id="image" />
8 <script>
9 // Remove the image's referrerpolicy attribute and set a new
10 // src to send a new request.
11 var img = document.getElementById("image");
12 img.removeAttribute("referrerpolicy");
13 img.src = "http://127.0.0.1:8000/security/resources/green-if-no-refer rer.php";
14 // The expected result is a red square because a referrer will be
15 // sent according to the default referrerpolicy.
16 </script>
17 </body>
18 </html
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698