OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 if (window.layoutTestController) { |
| 6 layoutTestController.dumpAsText(); |
| 7 layoutTestController.waitUntilDone(); |
| 8 } |
| 9 function runTest() { |
| 10 // Schedule a return to the main event loop so that the javascript: URL |
| 11 // has a chance to run. |
| 12 setTimeout(done, 0); |
| 13 window.open("\u0000javascript:alert('FAIL')", "tg"); |
| 14 } |
| 15 function done() { |
| 16 if (window.layoutTestController) |
| 17 layoutTestController.notifyDone(); |
| 18 } |
| 19 </script> |
| 20 </head> |
| 21 <body> |
| 22 This test passes if there is no alert dialog and the iframe contains a broken |
| 23 link.<br /> |
| 24 <iframe onload="runTest()" name="tg" |
| 25 src="http://localhost:8080/security/resources/innocent-victim.html" |
| 26 ></iframe> |
| 27 </body> |
| 28 </html> |
OLD | NEW |