Disallow to move a new tab by loadOneTab itself
This commit is contained in:
parent
355b3f181b
commit
84c0822592
@ -3302,6 +3302,11 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
delete this.nextOpenedTabToBeParent;
|
delete this.nextOpenedTabToBeParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tab.__treestyletab__isOpening = true;
|
||||||
|
this.window.setTimeout((function() {
|
||||||
|
tab.__treestyletab__isOpening = false;
|
||||||
|
}).bind(this), 0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
loadingMultipleTabs : false,
|
loadingMultipleTabs : false,
|
||||||
@ -3625,7 +3630,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
var b = this.mTabBrowser;
|
var b = this.mTabBrowser;
|
||||||
|
|
||||||
var prevPosition = aEvent.detail;
|
var prevPosition = aEvent.detail;
|
||||||
if (tab.owner && !tab.__treestyletab__internallyTabMovingCount) {
|
if (tab.__treestyletab__isOpening && !this.isTabInternallyMoving(tab)) {
|
||||||
mydump('onTabMove for new child tab: move back '+tab._tPos+' => '+prevPosition+'\n');
|
mydump('onTabMove for new child tab: move back '+tab._tPos+' => '+prevPosition+'\n');
|
||||||
tab.__treestyletab__internallyTabMovingCount++;
|
tab.__treestyletab__internallyTabMovingCount++;
|
||||||
b.moveTabTo(tab, prevPosition);
|
b.moveTabTo(tab, prevPosition);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user