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

Side by Side Diff: LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer-when-downgrade.html

Issue 1253413003: Implement referrerpolicy attribute for anchor elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update webexposed layout tests 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/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script src="/resources/get-host-info.js"></script>
7 </head>
8 <body>
9 <a href="http://127.0.0.1:8000/security/resources/referrer-attr-anchor-targe t.html#no-referrer-when-downgrade"
10 referrerpolicy="no-referrer-when-downgrade" id="click-me">click me</a>
11 <script>
12 if (window.location.origin != get_host_info().HTTPS_ORIGIN) {
13 window.location = get_host_info().HTTPS_ORIGIN + window.location.pat hname;
14 } else {
15 document.getElementById("click-me").click();
16 }
17 </script>
18 </body>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698