Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="/resources/testharness.js"></script> | |
|
jochen (gone - plz use gerrit)
2015/05/04 07:20:31
nit 4sp indent
estark
2015/05/04 18:09:21
Done.
| |
| 5 <script src="/resources/testharnessreport.js"></script> | |
| 6 <meta name="referrer" content="no-referrer"> | |
| 7 </head> | |
| 8 <body> | |
| 9 <script> | |
| 10 async_test(function () { | |
| 11 var workerUrl = 'http://127.0.0.1:8000/security/contentSecurityPolicy/re sources/worker.php?type=report-referrer'; | |
| 12 var worker = new Worker(workerUrl); | |
|
jochen (gone - plz use gerrit)
2015/05/04 07:20:31
have you tried creating a shared worker? I'd expec
estark
2015/05/04 18:09:22
Unfortunately it doesn't quite work yet, because w
| |
| 13 worker.onmessage = this.step_func(function (event) { | |
| 14 assert_equals(workerUrl, event.data); | |
| 15 this.done(); | |
| 16 }); | |
| 17 }, "Worker with no referrer policy does not inherit document's policy"); | |
| 18 </script> | |
| 19 </body> | |
| 20 </html> | |
| OLD | NEW |