diff --git a/xpfe/browser/resources/content/navigatorDD.js b/xpfe/browser/resources/content/navigatorDD.js index 85aed9ad3fc..2fd5f57e37f 100644 --- a/xpfe/browser/resources/content/navigatorDD.js +++ b/xpfe/browser/resources/content/navigatorDD.js @@ -298,7 +298,7 @@ var contentAreaDNDObserver = { return flavourList; }, - onDrop: function (aData) + onDrop: function (aEvent, aData) { var aData = aData.length ? aData[0] : aData; var url = retrieveURLFromData(aData); @@ -341,7 +341,7 @@ var proxyIconDNDObserver = { }; var homeButtonObserver = { - onDrop: function (aData) + onDrop: function (aEvent, aData) { var aData = aData.length ? aData[0] : aData; var url = retrieveURLFromData(aData); @@ -407,7 +407,7 @@ function retrieveURLFromData (aData) switch (aData.flavour) { case "text/unicode": - return aData.data.data; + return aData.data.data; // XXX this is busted. break; case "application/x-moz-file": var dataObj = aData.data.data.QueryInterface(Components.interfaces.nsIFile); diff --git a/xpfe/global/resources/content/nsDragAndDrop.js b/xpfe/global/resources/content/nsDragAndDrop.js index 8ecf3919084..3a1d90e7596 100644 --- a/xpfe/global/resources/content/nsDragAndDrop.js +++ b/xpfe/global/resources/content/nsDragAndDrop.js @@ -48,8 +48,6 @@ * // or not to accept drop. **/ -/** error codes **/ - var nsDragAndDrop = { get mDragService() @@ -153,7 +151,7 @@ var nsDragAndDrop = { aEvent.preventBubble(); // hand over to the client to respond to dropped data if (aDragDropObserver.onDrop) - aDragDropObserver.onDrop(dragData); + aDragDropObserver.onDrop(aEvent, dragData); } },