bdash | c873850 | 2007-03-19 04:32:24 +0000 | [diff] [blame] | 1 | <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=8272">bug 8272</a>: |
ap | 3afac8d | 2006-07-20 19:20:55 +0000 | [diff] [blame] | 2 | Use of window.open & window.close can cause crash.</p> |
| 3 | <ol> |
| 4 | <li>(Get a dual processor Mac.)</li> |
| 5 | <li>Disable popup blocking in Safari.</li> |
| 6 | <li>Click the Start button.</li> |
| 7 | <li>As the test runs, move the mouse around.</li> |
| 8 | <li>If Safari doesn't crash in a while, interrupt the test by pressing Cmd+W.</li> |
| 9 | </ol> |
| 10 | |
| 11 | <button onclick="window.open('invalid-mouse-event.html?2', '', '');">Start</button> |
| 12 | |
| 13 | <script> |
| 14 | |
| 15 | if (location.search) { |
| 16 | if (location.search == "?1") { |
| 17 | window.opener.location = window.opener.location; |
| 18 | window.close(); |
| 19 | } else { |
| 20 | window.open('invalid-mouse-event.html?1', '', ''); |
| 21 | } |
| 22 | } |
| 23 | </script> |