new tab from links opened by Tab Mix Plus were not made children of the current tab (fix for https://github.com/piroor/treestyletab/issues#issue/69 )

This commit is contained in:
SHIMODA Hiroshi 2011-04-05 12:28:06 +09:00
parent 20bf2b1fe7
commit a3f808f88b

View File

@ -435,6 +435,17 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function TSTService_override
)
);
if ('TabmixContext' in window &&
typeof TabmixContext.openMultipleLinks == 'function') {
eval('TabmixContext.openMultipleLinks = '+
TabmixContext.openMultipleLinks.toSource().replace(
/(TMP_loadTabs\([^\)]+\);)/g,
'TreeStyleTabService.readyToOpenChildTab(gBrowser, true); $1 TreeStyleTabService.stopToOpenChildTab(gBrowser);'
)
);
}
let listener = {
handleEvent : function(aEvent)
{