Merge pull request #1069 from jryans/tear-off-tabs
Repair tearing off a tree of multiple tabs
This commit is contained in:
commit
5516b752b1
@ -114,7 +114,7 @@ var TreeStyleTabWindowHelper = {
|
||||
gBrowser.__treestyletab__swapBrowsersAndCloseOther = gBrowser.swapBrowsersAndCloseOther;
|
||||
gBrowser.swapBrowsersAndCloseOther = function(...args) {
|
||||
if (TreeStyleTabWindowHelper.runningDelayedStartup &&
|
||||
TreeStyleTabService.tearOffSubtreeFromRemote())
|
||||
TreeStyleTabService.tearOffSubtreeFromRemote(...args))
|
||||
return;
|
||||
return gBrowser.__treestyletab__swapBrowsersAndCloseOther.apply(this, args);
|
||||
};
|
||||
|
@ -1870,10 +1870,9 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
|
||||
},
|
||||
_tabFocusAllowance : [],
|
||||
|
||||
tearOffSubtreeFromRemote : function TSTWindow_tearOffSubtreeFromRemote()
|
||||
tearOffSubtreeFromRemote : function TSTWindow_tearOffSubtreeFromRemote(ourTab, remoteTab)
|
||||
{
|
||||
var w = this.window;
|
||||
var remoteTab = w.arguments[0];
|
||||
var remoteWindow = remoteTab.ownerDocument.defaultView;
|
||||
var remoteService = remoteWindow.TreeStyleTabService;
|
||||
var remoteMultipleTabService = remoteWindow.MultipleTabService;
|
||||
|
Loading…
Reference in New Issue
Block a user