OLD | NEW |
1 <script> | 1 <script> |
2 if (window.testRunner) { | 2 if (window.testRunner) { |
3 testRunner.dumpAsText(); | 3 testRunner.dumpAsText(); |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 testRunner.setCanOpenWindows(true); | 5 testRunner.setCanOpenWindows(true); |
6 testRunner.setCloseRemainingWindowsWhenComplete(true); | 6 testRunner.setCloseRemainingWindowsWhenComplete(true); |
7 } | 7 } |
8 </script> | 8 </script> |
9 <p>To run this test outside of DumpRenderTree, please disable your popup blocker
!</p> | 9 <p>To run this test outside of DumpRenderTree, please disable your popup blocker
!</p> |
10 <p>If you change this test, please be sure to change popup-allowed-by-sandbox-is
-sandboxed-control.html as well!</p> | 10 <p>If you change this test, please be sure to change popup-allowed-by-sandbox-is
-sandboxed-control.html as well!</p> |
11 <p>This test passes if it doesn't alert FAIL.</p> | 11 <p>This test passes if it doesn't alert FAIL.</p> |
12 <iframe sandbox="allow-scripts allow-popups" | 12 <iframe sandbox="allow-scripts allow-popups allow-same-origin" |
13 src="data:text/html, | 13 src="data:text/html, |
14 <script> | 14 <script> |
15 var win = window.open('data:text/html,<form action=javascript:alert(/FAIL
/) ><input type=submit></form><script>document.forms[0].submit(); if (window.tes
tRunner) testRunner.notifyDone();<\/script>', '_blank'); | 15 var win = window.open('about:blank', '_blank'); |
| 16 win.document.write( |
| 17 '<form action=javascript:alert(/FAIL/) ><input type=submit></form>' + |
| 18 '<script>document.forms[0].submit();' + |
| 19 'if (window.testRunner)testRunner.notifyDone();' + |
| 20 '</' + 'script>'); |
16 </script>" | 21 </script>" |
17 ></iframe> | 22 ></iframe> |
OLD | NEW |