From 6b4d851da90825a9c709761468afc124fd7adc0e Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Wed, 22 Aug 2007 05:03:58 +0000 Subject: [PATCH] Bug 309452: Dropping a tab to another tabbar should drop the URL, patch by Dorando , r=mconnor --- browser/base/content/tabbrowser.xml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index a1ee75c634b..a10afefc10c 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -93,10 +93,6 @@ ' + aEvent.target.label + ''); + } else { + aXferData.data.addDataForFlavour("text/unicode", "about:blank"); } } ]]> @@ -1507,10 +1504,12 @@ aXferData.data) + var oldIndex = aDragSession.sourceNode._tPos; + + if (newIndex > oldIndex) newIndex--; - if (newIndex != aXferData.data) - this.moveTabTo(this.mTabs[aXferData.data], newIndex); + if (newIndex != oldIndex) + this.moveTabTo(this.mTabs[oldIndex], newIndex); } else { var url = transferUtils.retrieveURLFromData(aXferData.data, aXferData.flavour.contentType); @@ -1559,7 +1558,6 @@