1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 13:14:12 +01:00

Use gBrowser.replaceTabWithWindow to detachtab.

This commit is contained in:
Ted Pavlic
2009-09-15 12:40:36 -04:00
parent dbc99ad956
commit 78bdfea010

View File

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