| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta http-equiv="Content-Security-Policy" content="connect-src 'none'"/> | |
| 5 <script> | |
| 6 if (window.testRunner) { | |
| 7 testRunner.waitUntilDone(); | |
| 8 testRunner.dumpAsText(); | |
| 9 } | |
| 10 </script> | |
| 11 </head> | |
| 12 <body> | |
| 13 <script> | |
| 14 try { | |
| 15 var worker = new SharedWorker('http://127.0.0.1:8000/security/contentSecurit
yPolicy/resources/worker.php?type=shared-make-xhr&csp=' + | |
| 16 encodeURIComponent("connect-src http://127.0.0
.1:8000")); | |
| 17 worker.port.onmessage = function (event) { | |
| 18 alert(event.data); | |
| 19 if (window.testRunner) | |
| 20 testRunner.notifyDone(); | |
| 21 }; | |
| 22 } catch (e) { | |
| 23 alert(e); | |
| 24 if (window.testRunner) | |
| 25 testRunner.notifyDone(); | |
| 26 } | |
| 27 </script> | |
| 28 </body> | |
| 29 </html> | |
| OLD | NEW |