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:
parent
026544aa69
commit
3a56142082
@ -343,7 +343,8 @@ var TreeStyleTabService = {
|
|||||||
|
|
||||||
updateTabDNDObserver : function TSTService_updateTabDNDObserver(aObserver)
|
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 &&
|
if (aObserver.tabContainer &&
|
||||||
aObserver.tabContainer.tabbrowser == aObserver) { // Firefox 3.7 or later
|
aObserver.tabContainer.tabbrowser == aObserver) { // Firefox 3.7 or later
|
||||||
@ -519,7 +520,8 @@ var TreeStyleTabService = {
|
|||||||
},
|
},
|
||||||
destroyTabDNDObserver : function TSTService_destroyTabDNDObserver(aObserver)
|
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 &&
|
if (aObserver.tabContainer &&
|
||||||
aObserver.tabContainer.tabbrowser == aObserver) { // Firefox 3.7 or later
|
aObserver.tabContainer.tabbrowser == aObserver) { // Firefox 3.7 or later
|
||||||
|
@ -689,7 +689,7 @@ var TreeStyleTabUtils = {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
var strip = aTabBrowser.mStrip;
|
var strip = aTabBrowser.mStrip;
|
||||||
return (strip && strip.localName == 'hbox') ?
|
return (strip && strip instanceof Ci.nsIDOMElement) ?
|
||||||
strip :
|
strip :
|
||||||
aTabBrowser.tabContainer.parentNode;
|
aTabBrowser.tabContainer.parentNode;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user