| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="/resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 async_test(function () { | 9 async_test(function () { |
| 10 var worker = new Worker('http://127.0.0.1:8000/security/contentSecurityP
olicy/resources/worker.php?type=report-referrer&csp=' + | 10 var worker = new Worker('http://127.0.0.1:8000/security/contentSecurityP
olicy/resources/worker.php?type=report-referrer&referrerpolicy=' + |
| 11 encodeURIComponent('referrer no-referrer')); | 11 encodeURIComponent('no-referrer')); |
| 12 worker.onmessage = this.step_func(function (event) { | 12 worker.onmessage = this.step_func(function (event) { |
| 13 assert_equals("HTTP Referer header is empty", event.data); | 13 assert_equals("HTTP Referer header is empty", event.data); |
| 14 this.done(); | 14 this.done(); |
| 15 }); | 15 }); |
| 16 }, "Worker with no-referrer CSP"); | 16 }, "Worker with no-referrer CSP"); |
| 17 </script> | 17 </script> |
| 18 </body> | 18 </body> |
| 19 </html> | 19 </html> |
| OLD | NEW |