blob: e76bbe568e03e6a7663f5ee1fd6599f219ae9425 [file] [log] [blame]
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +00001<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=8272">bug 8272</a>:
2Use 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
15if (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>