Don't open new tab from Ctrl-T as a new tab from content link

This commit is contained in:
YUKI Hiroshi 2014-09-30 15:12:29 +09:00
parent a9f1f8a86d
commit af6e5d0ba7
2 changed files with 3 additions and 3 deletions

View File

@ -212,7 +212,7 @@ var TreeStyleTabWindowHelper = {
eval('window.openLinkIn = '+
window.openLinkIn.toSource().replace(
/((b|newTab = w\.gB)rowser.loadOneTab\()/g,
'TreeStyleTabService.onBeforeOpenLinkWithTab(gBrowser.selectedTab); $1'
'TreeStyleTabService.onBeforeOpenLinkWithTab(gBrowser.selectedTab, aFromChrome); $1'
)
);
}

View File

@ -1213,9 +1213,9 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
this.handleNewTabFromCurrent(aOwner);
},
onBeforeOpenLinkWithTab : function TSTWindow_onBeforeOpenLinkWithTab(aTab)
onBeforeOpenLinkWithTab : function TSTWindow_onBeforeOpenLinkWithTab(aTab, aFromChrome)
{
if (aTab && !this.checkToOpenChildTab(aTab))
if (!aFromChrome && aTab && !this.checkToOpenChildTab(aTab))
this.handleNewTabFromCurrent(aTab);
},