remove-on-drop-crash.html 335 B

12345678910
  1. <body>
  2. Load <a href="http://www.google.com/">Google</a> and drag the logo onto this page. The second time you drag it on, Safari will crash.
  3. <script>
  4. function deleteSelection() {
  5. document.execCommand("delete");
  6. }
  7. document.designMode="on";
  8. document.body.addEventListener("DOMNodeInserted", deleteSelection, false);
  9. </script>
  10. </body>