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

Side by Side Diff: LayoutTests/http/tests/security/referrer-policy-attribute-img-no-referrer-when-downgrade.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 <script src="/resources/get-host-info.js"></script>
5 </head>
6 <body>
7 <script>
8 if (window.testRunner)
9 testRunner.waitUntilDone();
10
11 if (window.location.origin != get_host_info().HTTPS_ORIGIN) {
12 window.location = get_host_info().HTTPS_ORIGIN + window.location.pat hname;
13 } else {
14 var img = document.createElement("img");
15 img.src = "http://127.0.0.1:8000/security/resources/green-if-no-refe rrer.php";
16 img.referrerpolicy = "no-referrer-when-downgrade";
17 document.body.appendChild(img);
18 testRunner.notifyDone();
19 }
20 </script>
21 </body>
22 </html
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698