From 3a56142082a7986e877be88edeb4c915a5f2535a Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 8 Apr 2010 23:50:08 +0000 Subject: [PATCH] =?UTF-8?q?Tab=20Mix=20Plus=E3=81=AB=E3=82=88=E3=82=8B?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=AE=E3=83=95=E3=82=A9=E3=83=BC=E3=82=AB?= =?UTF-8?q?=E3=82=B9=E5=88=B6=E5=BE=A1=E3=81=8C=E5=83=8D=E3=81=8B=E3=81=AA?= =?UTF-8?q?=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6591 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 6 ++++-- modules/utils.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 04f1845d..512a40ea 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -343,7 +343,8 @@ var TreeStyleTabService = { updateTabDNDObserver : function TSTService_updateTabDNDObserver(aObserver) { - var strip = this.getTabStrip(aObserver); + var strip = this.getTabStrip(aObserver) || + gBrowser.mStrip // fallback to the default strip, for Tab Mix Plus; if (aObserver.tabContainer && aObserver.tabContainer.tabbrowser == aObserver) { // Firefox 3.7 or later @@ -519,7 +520,8 @@ var TreeStyleTabService = { }, destroyTabDNDObserver : function TSTService_destroyTabDNDObserver(aObserver) { - var strip = this.getTabStrip(aObserver); + var strip = this.getTabStrip(aObserver) || + gBrowser.mStrip // fallback to the default strip, for Tab Mix Plus; if (aObserver.tabContainer && aObserver.tabContainer.tabbrowser == aObserver) { // Firefox 3.7 or later diff --git a/modules/utils.js b/modules/utils.js index 5d7457e6..9f96ddef 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -689,7 +689,7 @@ var TreeStyleTabUtils = { return null; var strip = aTabBrowser.mStrip; - return (strip && strip.localName == 'hbox') ? + return (strip && strip instanceof Ci.nsIDOMElement) ? strip : aTabBrowser.tabContainer.parentNode; },