Update click hook for Bug 1108555 changes

Commit that broke compatibility:
3db60dbec7 (diff-1)

Should be backwards compatible.
This commit is contained in:
LordJZ 2014-12-25 01:10:20 +03:00
parent d5b2d18df2
commit cdc37508f6

View File

@ -200,8 +200,9 @@ var TreeStyleTabWindowHelper = {
TreeStyleTabUtils.doPatching(window.openLinkIn, 'window.openLinkIn', function(aName, aSource) { TreeStyleTabUtils.doPatching(window.openLinkIn, 'window.openLinkIn', function(aName, aSource) {
// Bug 1050447 changed this line in Fx 34 to // Bug 1050447 changed this line in Fx 34 to
// newTab = w.gBrowser.loadOneTab( // newTab = w.gBrowser.loadOneTab(
// Bug 1108555 removed newTab assignment
return eval(aName+' = '+aSource.replace( return eval(aName+' = '+aSource.replace(
/((b|newTab = w\.gB)rowser.loadOneTab\()/g, /((b|(newTab = )?w\.gB)rowser.loadOneTab\()/g,
'TreeStyleTabService.onBeforeOpenLinkWithTab(gBrowser.selectedTab, aFromChrome); $1' 'TreeStyleTabService.onBeforeOpenLinkWithTab(gBrowser.selectedTab, aFromChrome); $1'
)); ));
}, 'TreeStyleTab'); }, 'TreeStyleTab');