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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/referrer-policy/css-integration/presentation-attribute.html

Issue 2780533002: Use Referrer-Policy headers for CSS stylesheets (Closed)
Patch Set: updates Created 3 years, 8 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 <title>CSS integration - image from presentation attribute</title>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 <script src="/common/utils.js"></script>
8 <!-- Common global functions for referrer-policy tests. -->
9 <script src="/referrer-policy/generic/common.js"></script>
10 <meta name="referrer" content="origin">
11 </head>
12 <body>
13 <p>Check that resources from presentation attributes are loaded with
14 the referrer and referrer policy from the document.</p>
15
16 <script>
17 var css_test = async_test("Image from presentation attributes.");
18 var id = token();
19 var css_url = location.protocol + "//www1." + location.hostname + ":" + lo cation.port + "/referrer-policy/generic/subresource/image.py" + "?id=" + id;
20 var img_url = css_url + "&report-headers";
21
22 document.body.background = css_url;
23 css_test.step_timeout(
24 queryXhr.bind(this, img_url,
25 function(message) {
26 css_test.step(function() {
27 assert_own_property(message, "headers");
28 assert_own_property(message, "referrer");
29 assert_equals(message.referrer, location.origin + "/ ");
30 });
31 css_test.done();
32 }),
33 1000);
34 </script>
35
36 <div id="log"></div>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698