invalid-mouse-event.html 709 B

1234567891011121314151617181920212223
  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. <button onclick="window.open('invalid-mouse-event.html?2', '', '');">Start</button>
  11. <script>
  12. if (location.search) {
  13. if (location.search == "?1") {
  14. window.opener.location = window.opener.location;
  15. window.close();
  16. } else {
  17. window.open('invalid-mouse-event.html?1', '', '');
  18. }
  19. }
  20. </script>