OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta http-equiv="Content-Security-Policy" content="connect-src http://127.0.0.1
:8000"/> | |
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 Worker('http://127.0.0.1:8000/security/contentSecurityPolic
y/resources/worker.php?type=make-xhr&csp=' + | |
16 encodeURIComponent("connect-src http://127.0.0.1:80
00")); | |
17 worker.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 |