From 3820e09600c29262cac7f83cab928585d7696f14 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Fri, 9 Mar 2001 02:00:21 +0000 Subject: [PATCH] Can't drag text from page into textfields in same page. Patch by brade. r=blake sr=ben --- xpfe/communicator/resources/content/contentAreaDD.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xpfe/communicator/resources/content/contentAreaDD.js b/xpfe/communicator/resources/content/contentAreaDD.js index 74ae786fac0c..5fc0512b6505 100644 --- a/xpfe/communicator/resources/content/contentAreaDD.js +++ b/xpfe/communicator/resources/content/contentAreaDD.js @@ -153,6 +153,9 @@ var contentAreaDNDObserver = { onDragOver: function (aEvent, aFlavour, aDragSession) { + if (aEvent.getPreventDefault()) + return; + // if the drag originated w/in this content area, bail early. This avoids loading // a URL dragged from the content area into the very same content area (which is // almost never the desired action). This code is a bit too simplistic and may