Fix click hook for nesting new tabs in e10s mode
This commit is contained in:
parent
8fa1d76281
commit
0cc0714723
@ -212,7 +212,7 @@ var TreeStyleTabWindowHelper = {
|
||||
eval('window.openLinkIn = '+
|
||||
window.openLinkIn.toSource().replace(
|
||||
/((b|newTab = w\.gB)rowser.loadOneTab\()/g,
|
||||
'TreeStyleTabService.onBeforeOpenLinkWithParams(params); $1'
|
||||
'TreeStyleTabService.onBeforeOpenLinkWithTab(gBrowser.selectedTab); $1'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -1213,11 +1213,10 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
|
||||
this.handleNewTabFromCurrent(aOwner);
|
||||
},
|
||||
|
||||
onBeforeOpenLinkWithParams : function TSTWindow_onBeforeOpenLinkWithParams(aParams)
|
||||
onBeforeOpenLinkWithTab : function TSTWindow_onBeforeOpenLinkWithParams(aTab)
|
||||
{
|
||||
if (aParams.linkNode &&
|
||||
!this.checkToOpenChildTab(aParams.linkNode.ownerDocument.defaultView))
|
||||
this.handleNewTabFromCurrent(aParams.linkNode.ownerDocument.defaultView);
|
||||
if (aTab && !this.checkToOpenChildTab(aTab))
|
||||
this.handleNewTabFromCurrent(aTab);
|
||||
},
|
||||
|
||||
onBeforeOpenNewTabByThirdParty : function TSTWindow_onBeforeOpenNewTabByThirdParty(aOwner)
|
||||
|
Loading…
x
Reference in New Issue
Block a user