tabs opened by Duplicate This Tab ( https://addons.mozilla.org/firefox/addon/duplicate-this-tab/ ) aren't opened as a child of the current tab.

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-07-27 02:22:16 +09:00
parent 5dfbffc0be
commit 5c99ed22f8
2 changed files with 14 additions and 0 deletions

View File

@ -1098,6 +1098,19 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove
);
}
// Duplicate This Tab
// https://addons.mozilla.org/firefox/addon/duplicate-this-tab/
if ('duplicatethistab' in window &&
'openLinkWithHistory' in window.duplicatethistab &&
sv.getTreePref('compatibility.DuplicateThisTab')) {
eval('duplicatethistab.openLinkWithHistory = '+
duplicatethistab.openLinkWithHistory.toSource().replace(
'var newTab = ',
'TreeStyleTabService.readyToOpenChildTab(); $&'
)
);
}
window.setTimeout(function(aSelf) {
aSelf.overrideExtensionsDelayed();
}, 0, this);

View File

@ -569,6 +569,7 @@ pref("extensions.treestyletab.compatibility.ColorfulTabs", true);
pref("extensions.treestyletab.compatibility.DomainTab", true);
pref("extensions.treestyletab.compatibility.DragDeGo", true);
pref("extensions.treestyletab.compatibility.DragNDropToolbars", true);
pref("extensions.treestyletab.compatibility.DuplicateThisTab", true);
pref("extensions.treestyletab.compatibility.FirefoxSync", true);
pref("extensions.treestyletab.compatibility.FireGestures", true);
pref("extensions.treestyletab.compatibility.FLST", true);