OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script> | 2 <script> |
3 if (window.testRunner) | |
4 testRunner.setAllowDisplayOfInsecureContent(true); | |
5 | |
6 function done() | 3 function done() |
7 { | 4 { |
8 if (window.testRunner) | 5 if (window.testRunner) |
9 testRunner.notifyDone(); | 6 testRunner.notifyDone(); |
10 } | 7 } |
11 </script> | 8 </script> |
12 <style> | 9 <style> |
13 test { | 10 test { |
14 content: url("http://127.0.0.1:8080/security/resources/green-if-no-referrer.
php"); | 11 content: url("http://127.0.0.1:8080/security/resources/green-if-no-referrer.
php"); |
15 } | 12 } |
16 </style> | 13 </style> |
17 <meta name="referrer" content="origin" /> | 14 <meta name="referrer" content="origin" /> |
18 <body onload="done();"> | 15 <body onload="done();"> |
19 <p> | 16 <p> |
20 Checks that an CSS image that was created before a referrer policy was set is | 17 Checks that an CSS image that was created before a referrer policy was set is |
21 loaded with the correct referrer, in this case, without a referrer. | 18 loaded with the correct referrer, in this case, without a referrer. |
22 </p> | 19 </p> |
23 <p> | 20 <p> |
24 The test passes, if a green rectangle is displayed below. | 21 The test passes, if a green rectangle is displayed below. |
25 </p> | 22 </p> |
26 <test/> | 23 <test/> |
27 </body> | 24 </body> |
OLD | NEW |