OLD | NEW |
| 1 <?php |
| 2 header("Content-Security-Policy: sandbox allow-scripts allow-popups allow-popups
-to-escape-sandbox"); |
| 3 ?> |
1 <!DOCTYPE html> | 4 <!DOCTYPE html> |
2 <html> | 5 <html> |
3 <head> | 6 <head> |
4 <meta http-equiv="Content-Security-Policy" content="sandbox allow-scripts al
low-popups allow-popups-to-escape-sandbox"> | |
5 <script src="/resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
6 <script src="/resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
7 </head> | 9 </head> |
8 <body> | 10 <body> |
9 <script> | 11 <script> |
10 if (window.testRunner) { | 12 if (window.testRunner) { |
11 testRunner.setCanOpenWindows(); | 13 testRunner.setCanOpenWindows(); |
12 testRunner.setCloseRemainingWindowsWhenComplete(true); | 14 testRunner.setCloseRemainingWindowsWhenComplete(true); |
13 } | 15 } |
14 | 16 |
(...skipping 14 matching lines...) Expand all Loading... |
29 } | 31 } |
30 })); | 32 })); |
31 | 33 |
32 test.step(function () { | 34 test.step(function () { |
33 console.log("Opening a window!"); | 35 console.log("Opening a window!"); |
34 win = window.open('/security/resources/post-origin-to-opener.html',
'_blank', ''); | 36 win = window.open('/security/resources/post-origin-to-opener.html',
'_blank', ''); |
35 }); | 37 }); |
36 </script> | 38 </script> |
37 </body> | 39 </body> |
38 </html> | 40 </html> |
OLD | NEW |