~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/remove-on-drop-crash.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>