summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/remove-on-drop-crash.html
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/manual-tests/remove-on-drop-crash.html
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/manual-tests/remove-on-drop-crash.html')
-rw-r--r--WebCore/manual-tests/remove-on-drop-crash.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/manual-tests/remove-on-drop-crash.html b/WebCore/manual-tests/remove-on-drop-crash.html
new file mode 100644
index 0000000..c50adba
--- /dev/null
+++ b/WebCore/manual-tests/remove-on-drop-crash.html
@@ -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>