From 8fa1d76281b3acf7db121ab67a58f1d667a0b177 Mon Sep 17 00:00:00 2001 From: John Schoenick Date: Wed, 27 Aug 2014 15:58:06 -0700 Subject: [PATCH] Fix click->open link handler for bug 1050447/Fx 34 --- content/treestyletab/windowHelper.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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' ) ); }