Merge pull request #816 from LordJZ/master

Update click hook for Bug 1108555 changes
This commit is contained in:
YUKI "Piro" Hiroshi 2015-02-09 12:30:42 +09:00
commit 3641f84b8e

View File

@ -200,8 +200,9 @@ var TreeStyleTabWindowHelper = {
TreeStyleTabUtils.doPatching(window.openLinkIn, 'window.openLinkIn', function(aName, aSource) {
// Bug 1050447 changed this line in Fx 34 to
// newTab = w.gBrowser.loadOneTab(
// Bug 1108555 removed newTab assignment
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'
));
}, 'TreeStyleTab');