From 78bdfea01051c60a877606e7c0aa4983b682278b Mon Sep 17 00:00:00 2001 From: Ted Pavlic Date: Tue, 15 Sep 2009 12:40:36 -0400 Subject: [PATCH] Use gBrowser.replaceTabWithWindow to detachtab. --- common/content/tabs.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/content/tabs.js b/common/content/tabs.js index e912268d..b2d42b2f 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -1155,11 +1155,7 @@ function Tabs() //{{{ if (!tab) tab = getBrowser().mTabContainer.selectedItem; - window.open(); - let win = services.get("windowMediator").getMostRecentWindow("navigator:browser"); - - copyTab(win.getBrowser().mCurrentTab, tab); - this.remove(tab, 1, false, 1); + getBrowser().replaceTabWithWindow(tab); }, /**