Don't open new tab from Ctrl-T as a new tab from content link
This commit is contained in:
parent
a9f1f8a86d
commit
af6e5d0ba7
@ -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'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -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);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user