Fix bug in drag and drop in Firefox

Firefox requires the ev.dataTransfer.setData method to be called for
events to fire.