Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / invalid-mouse-event.html
blobe76bbe568e03e6a7663f5ee1fd6599f219ae9425
1 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=8272">bug 8272</a>:
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>
11 <button onclick="window.open('invalid-mouse-event.html?2', '', '');">Start</button>
13 <script>
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', '', '');
23 </script>