Home | History | Annotate | Download | only in ManualTests
      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>
     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>
     24