rem: folderOutliner.outlinerBoxObject.selection.clearSelection(); 
add: folderTree.treeBoxObject.selection.clearSelection(); 
context: function RenameFolder(name,uri){  dump("uri,name = " + uri + "," + name + "\n");  var folderOutliner = GetFolderOutliner();  if (folderOutliner)  {    if (uri && (uri != "") && name && (name != ""))     {      var selectedFolder = GetResourceFromUri(uri);      if (gDBView)        gCurrentlyDisplayedMessage = gDBView.currentlyDisplayedMessage;      ClearThreadPane();      ClearMessagePane();      folderOutliner.outlinerBoxObject.selection.clearSelection();      try      {        messenger.RenameFolder(GetFolderDatasource(), selectedFolder, name);      }      catch(e)      {        SelectFolder(selectedFolder.URI);  //restore selection        throw(e); // so that the dialog does not automatically close        dump ("Exception : RenameFolder \n");      }    }    else     {      dump("no name or nothing selected\n");    }     }  else   {	  dump("no folder tree\n");  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js