Repair tearing off a tree of multiple tabs

This commit is contained in:
J. Ryan Stinnett 2016-02-16 17:37:32 -06:00
parent f20f936a03
commit 97a0afea4c
2 changed files with 2 additions and 3 deletions

View File

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

View File

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