Make new tabs opened with "relatedToCurrent:true" as a child of the current tab
This commit is contained in:
parent
ef5d21b413
commit
f4fff387b1
@ -3166,6 +3166,15 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
'treeStructure: '+this.treeStructure
|
'treeStructure: '+this.treeStructure
|
||||||
].join('\n ') + '\n');
|
].join('\n ') + '\n');
|
||||||
|
|
||||||
|
if (!this.readiedToAttachNewTab) {
|
||||||
|
this.window.setTimeout((function() {
|
||||||
|
if (tab.owner && tab.owner != this.getParentTab(tab)) {
|
||||||
|
mydump('TSTBrowser_onTabOpen: new child tab opened by browser.tabs.insertRelatedAfterCurrent=true\n');
|
||||||
|
this.attachTabTo(tab, tab.owner);
|
||||||
|
}
|
||||||
|
}).bind(this), 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.readiedToAttachNewTab) {
|
if (this.readiedToAttachNewTab) {
|
||||||
if (pareintIndexInTree < 0) { // there is no parent, so this is a new parent!
|
if (pareintIndexInTree < 0) { // there is no parent, so this is a new parent!
|
||||||
this.parentTab = tab.getAttribute(this.kID);
|
this.parentTab = tab.getAttribute(this.kID);
|
||||||
|
Loading…
Reference in New Issue
Block a user