changeset 0 | 4f2f89ce4247 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WebCore/manual-tests/remove-on-drop-crash.html Fri Sep 17 09:02:29 2010 +0300 @@ -0,0 +1,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>