summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/remove-on-drop-crash.html
blob: c50adbada311f05c9692248fb5607952d3bbec74 (plain)
1
2
3
4
5
6
7
8
9
10
<body>
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.
<script>
function deleteSelection() {
  document.execCommand("delete");
}
document.designMode="on";
document.body.addEventListener("DOMNodeInserted", deleteSelection, false);
</script>
</body>