From f5682bef767f2349c51ae384b9fb12bdd5900e5e Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Thu, 5 Mar 2015 23:35:09 +0900 Subject: [PATCH] Patch for gBrowserInit._delayedStartup more surely --- content/treestyletab/windowHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index 2069651e..7095eb96 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -20,7 +20,7 @@ var TreeStyleTabWindowHelper = { } else if (aSource.indexOf('gBrowser.swapBrowsersAndCloseOther') > -1) { return eval(aName+' = '+aSource.replace( - 'gBrowser.swapBrowsersAndCloseOther(gBrowser.selectedTab, uriToLoad);', + /gBrowser\.swapBrowsersAndCloseOther\([^)]+\);/g, 'if (!TreeStyleTabService.tearOffSubtreeFromRemote()) { $& }' ).replace( // Workaround for https://github.com/piroor/treestyletab/issues/741