summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/remove-on-drop-crash.html
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/manual-tests/remove-on-drop-crash.html')
-rw-r--r--Source/WebCore/manual-tests/remove-on-drop-crash.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/remove-on-drop-crash.html b/Source/WebCore/manual-tests/remove-on-drop-crash.html
new file mode 100644
index 0000000..c50adba
--- /dev/null
+++ b/Source/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>