rem: var index = panelTree.contentView.getIndexOfItem( selectItem ); if ( !panelTree.view.isContainerOpen( index ) ) panelTree.view.toggleOpenState(index); 
add: var selectItemroot = document.getElementById( aComponentName ); var parentIndex = panelTree.contentView.getIndexOfItem( selectItemroot ); if (parentIndex != -1 && !panelTree.view.isContainerOpen(parentIndex)) panelTree.view.toggleOpenState(parentIndex); var index = panelTree.view.getIndexOfItem( selectItem ); if (index == -1) return; 
context:     openBranch:      function ( aComponentName, aSelectItem )        {          var panelTree = document.getElementById( "prefsTree" );          var selectItem = document.getElementById( aSelectItem );          var index = panelTree.contentView.getIndexOfItem( selectItem );          if ( !panelTree.view.isContainerOpen( index ) )            panelTree.view.toggleOpenState(index);          panelTree.treeBoxObject.selection.select( index );        }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/bac7341be331e153c36927248e91faf449c7a983/nsPrefWindow.js/buggy/suite/common/pref/nsPrefWindow.js