rem: tree.selectItem(newItem); tree.ensureElementIsVisible(newItem); 
add:   if (newItem) { tree.selectItem(newItem); tree.ensureElementIsVisible(newItem); } 
context: function refreshFilterList() {    var tree = document.getElementById("filterTree");    if (!tree) return;    var selection;        var selectedItems = tree.selectedItems;    if (selectedItems && selectedItems.length >0)        selection = tree.selectedItems[0].id;    tree.clearItemSelection();    tree.clearCellSelection();    tree.setAttribute("ref", tree.getAttribute("ref"));    if (selection) {        var newItem = document.getElementById(selection);        tree.selectItem(newItem);        tree.ensureElementIsVisible(newItem);    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b43c22c6c6ee3fe85f7700cfea91217c863b423e/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js