summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTed Pavlic <ted@tedpavlic.com>2009-09-15 12:40:36 -0400
committerTed Pavlic <ted@tedpavlic.com>2009-09-15 12:40:36 -0400
commit78bdfea01051c60a877606e7c0aa4983b682278b (patch)
treefbf38a90827ac6d062e06721ceeb705f46475a4c /common
parentdbc99ad9566d15b18bc0c397c3b431901b41b85d (diff)
downloadpentadactyl-78bdfea01051c60a877606e7c0aa4983b682278b.tar.gz
Use gBrowser.replaceTabWithWindow to detachtab.
Diffstat (limited to 'common')
-rw-r--r--common/content/tabs.js6
1 files changed, 1 insertions, 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);
},
/**