Tab Mix Plusによるタブのフォーカス制御が働かなくなっていた

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6591 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-04-08 23:50:08 +00:00
parent 026544aa69
commit 3a56142082
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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;
},