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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/referrer-policy/generic/unsupported-csp-referrer-directive.html

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests Created 3 years, 10 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Referrer Policy: CSP 'referrer' directive should not be supported</ti tle> 4 <title>Referrer Policy: CSP 'referrer' directive should not be supported</ti tle>
5 <meta http-equiv="Content-Security-Policy" content="referrer no-referrer"> 5 <meta http-equiv="Content-Security-Policy" content="referrer no-referrer">
6 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
8 <!-- Common global functions for referrer-policy tests. --> 8 <!-- Common global functions for referrer-policy tests. -->
9 <script src="/referrer-policy/generic/common.js"></script> 9 <script src="/referrer-policy/generic/common.js"></script>
10 </head> 10 </head>
11 <body> 11 <body>
12 <h1>Referrer Policy: CSP 'referrer' directive should not be supported</h1> 12 <h1>Referrer Policy: CSP 'referrer' directive should not be supported</h1>
13 <p>CSP used to have a 'referrer' directive to set a Referrer Policy. This di rective has been removed and should not be supported.</p> 13 <p>CSP used to have a 'referrer' directive to set a Referrer Policy. This di rective has been removed and should not be supported.</p>
14 14
15 <pre id="received_message">Running...</pre> 15 <pre id="received_message">Running...</pre>
16 16
17 <script> 17 <script>
18 var test = async_test("Image has a referrer despite CSP 'referrer' directi ve"); 18 var test = async_test("Image has a referrer despite CSP 'referrer' directi ve");
19 var urlPath = '/referrer-policy/generic/subresource/image.py?cache_destroy er=' + (new Date()).getTime(); 19 var urlPath = '/referrer-policy/generic/subresource/image.py?cache_destroy er=' + (new Date()).getTime();
20 var url = location.protocol + "//www1." + location.hostname + ":" + locati on.port + 20 var url = location.protocol + "//www1." + location.hostname + ":" + locati on.port +
21 urlPath; 21 urlPath;
22 queryImage(url, test.step_func(function(message) { 22 queryImage(url, test.step_func(function(message) {
23 assert_equals(message.referrer, document.location.href); 23 assert_equals(message.referrer, document.location.href);
24 test.done(); 24 test.done();
25 })); 25 }), null, 'always', test);
26 </script> 26 </script>
27 27
28 <div id="log"></div> 28 <div id="log"></div>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698