From 66e9e5d96a3bf89595c8bc9cb02713d076322801 Mon Sep 17 00:00:00 2001 From: "jag%tty.nl" Date: Tue, 24 Jan 2006 03:11:10 +0000 Subject: [PATCH] Bug 321490: Make SeaMonkey compatible again with moveTabTo implementation of the Firefox If the first argument is a tab, look up its index. Return the tab we get from insertBefore(). r=CTho, sr=Neil, a=Ian Neal, CTho git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@188081 18797224-902f-48f8-a5cc-f745e15eee43 --- .../resources/content/bindings/tabbrowser.xml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/mozilla/xpfe/global/resources/content/bindings/tabbrowser.xml b/mozilla/xpfe/global/resources/content/bindings/tabbrowser.xml index ef4b9dfba08..da90c18ddc7 100644 --- a/mozilla/xpfe/global/resources/content/bindings/tabbrowser.xml +++ b/mozilla/xpfe/global/resources/content/bindings/tabbrowser.xml @@ -1360,16 +1360,22 @@ = aSrcIndex) + ++aDestIndex; + var tab = this.mTabContainer.insertBefore(this.mTabs[aSrcIndex], this.mTabs.item(aDestIndex)); + this.mCurrentTab.selected = true; + + return tab; ]]>