diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 912e647b..3a76ffa5 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -258,11 +258,32 @@ TreeStyleTabService.overrideExtensions = function() { eval('TMP_Bookmark.openGroup = '+ TMP_Bookmark.openGroup.toSource().replace( - /(tabToSelect = aTab;)/, - '$1 TreeStyleTabService.readyToOpenChildTab(tabToSelect, true);' + /(var tabToSelect = null;)/, + <> + ).replace( + 'index = prevTab._tPos + 1;', + <> + ).replace( + /(prevTab = aTab;)/, + <> ).replace( /(browser.mTabContainer.nextTab)/, - 'TreeStyleTabService.stopToOpenChildTab(tabToSelect); $1' + <> ) ); diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 739531b1..885c0865 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1854,6 +1854,17 @@ catch(e) { ).singleNodeValue; }, + getRootTab : function(aTab) + { + var parent = aTab; + var root = aTab; + while (parent = this.getParentTab(parent)) + { + root = parent; + } + return root; + }, + getNextSiblingTab : function(aTab) { if (!aTab) return null;