From bc65b16b5827bc6556f2f5a13b5dcc2154f49153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Tue, 7 Dec 2010 12:59:15 +0100 Subject: [PATCH] Bug 615515 - Set the whole item as the dragged element. r=enn --- browser/base/content/browser.js | 2 +- toolkit/mozapps/downloads/content/downloads.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index c4283e5d4d87..b2ed428e0422 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -7305,7 +7305,7 @@ var gIdentityHandler = { dt.setData("text/uri-list", value); dt.setData("text/plain", value); dt.setData("text/html", htmlString); - dt.setDragImage(event.currentTarget, 0, 0); + dt.addElement(event.currentTarget); } }; diff --git a/toolkit/mozapps/downloads/content/downloads.js b/toolkit/mozapps/downloads/content/downloads.js index 511b5ca9b768..fb6ad13cf63d 100644 --- a/toolkit/mozapps/downloads/content/downloads.js +++ b/toolkit/mozapps/downloads/content/downloads.js @@ -720,6 +720,7 @@ var gDownloadDNDObserver = var dt = aEvent.dataTransfer; dt.mozSetDataAt("application/x-moz-file", f, 0); dt.effectAllowed = "copyMove"; + dt.addElement(dl); }, onDragOver: function (aEvent)