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

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

Issue 1328183002: Implement referrerpolicy attr for iframes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move referrerpolicy retrieval to subclass Created 5 years, 3 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 <script>
10 if (window.location.origin != get_host_info().HTTPS_ORIGIN) {
11 window.location = get_host_info().HTTPS_ORIGIN + window.location.pathname;
12 } else {
13 testRunner.overridePreference("WebKitAllowRunningInsecureContent", true);
14 async_test(function () {
15 window.onmessage = this.step_func(function (event) {
16 if (event.data.policy === "no-referrer-when-downgrade") {
17 assert_equals(event.data.referrer, "");
18 this.done();
19 }
20 });
21 }, "no-referrer-when-downgrade attribute on iframe");
22 }
23 </script>
24
25 <iframe src="http://127.0.0.1:8000/security/resources/referrer-attr-iframe-tar get.html#no-referrer-when-downgrade" referrerpolicy="no-referrer-when-downgrade" />
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698