diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index ce60ca3e..46940cae 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -207,10 +207,12 @@ var TreeStyleTabWindowHelper = { } if ('openLinkIn' in window) { + // Bug 1050447 changed this line in Fx 34 to + // newTab = w.gBrowser.loadOneTab( eval('window.openLinkIn = '+ window.openLinkIn.toSource().replace( - 'browser.loadOneTab(', - 'TreeStyleTabService.onBeforeOpenLinkWithParams(params); $&' + /((b|newTab = w\.gB)rowser.loadOneTab\()/g, + 'TreeStyleTabService.onBeforeOpenLinkWithParams(params); $1' ) ); }