Treat newly opened tabs as "duplicated", for Duplicate This Tab addon

This commit is contained in:
YUKI Hiroshi 2016-09-05 16:48:30 +09:00
parent e1a89d1095
commit 96716bd5cf

View File

@ -588,12 +588,12 @@ TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_ove
!duplicatethistab.__treestyletab__openLinkWithHistory) {
duplicatethistab.__treestyletab__openLinkWithHistory = duplicatethistab.openLinkWithHistory;
duplicatethistab.openLinkWithHistory = function(...aArgs) {
TreeStyleTabService.readyToOpenChildTabNow();
gBrowser.treeStyleTab.onBeforeTabDuplicate();
return this.__treestyletab__openLinkWithHistory(...aArgs);
};
duplicatethistab.__treestyletab__duplicateInTab = duplicatethistab.duplicateInTab;
duplicatethistab.duplicateInTab = function(...aArgs) {
TreeStyleTabService.readyToOpenChildTabNow();
gBrowser.treeStyleTab.onBeforeTabDuplicate();
return this.__treestyletab__duplicateInTab(...aArgs);
};
}