From cdc37508f65a963f543e9c9cd2bf4404303db4ce Mon Sep 17 00:00:00 2001 From: LordJZ Date: Thu, 25 Dec 2014 01:10:20 +0300 Subject: [PATCH] Update click hook for Bug 1108555 changes Commit that broke compatibility: https://github.com/mozilla/gecko-dev/commit/3db60dbec7eda01090294f7526b7a7878abb5076#diff-1 Should be backwards compatible. --- content/treestyletab/windowHelper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index e1648e0b..bf569307 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -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');