Patch for gBrowserInit._delayedStartup more surely

This commit is contained in:
Piro / YUKI Hiroshi 2015-03-05 23:35:09 +09:00
parent e0db926068
commit f5682bef76

View File

@ -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