rem: UpdateLocationBar(newFolder); 
add: UpdateLocationBar(gMsgFolderSelected); 
context: function RerootFolder(uri, newFolder, viewType, viewFlags, sortType, sortOrder){  viewDebug("In reroot folder, sortType = " +  sortType + "viewType = " + viewType + "\n");  if (sortType == 0)  {    try    {      var msgdb = newFolder.getMsgDatabase(msgWindow);      var dbFolderInfo = msgdb.dBFolderInfo;      sortType = dbFolderInfo.sortType;      sortOrder = dbFolderInfo.sortOrder;      viewFlags = dbFolderInfo.viewFlags;      viewType = dbFolderInfo.viewType;      dbFolderInfo = null;    }    catch(ex)    {      dump("invalid db in RerootFolder: " + ex + "\n");    }  }  // workaround for #39655  gFolderJustSwitched = true;  ClearThreadPaneSelection();  //Clear the new messages of the old folder  var oldFolder = gPrevSelectedFolder;  if (oldFolder) {      oldFolder.clearNewMessages();    oldFolder.hasNewMessages = false;  }  //Set the window's new open folder.  msgWindow.openFolder = newFolder;  //the new folder being selected should have its biff state get cleared.  if(newFolder)  {    newFolder.biffState =          Components.interfaces.nsIMsgFolder.nsMsgBiffState_NoMail;  }  //Clear out the thread pane so that we can sort it with the new sort id without taking any time.  // folder.setAttribute('ref', "");  // null this out, so we don't try sort.  if (gDBView) {    gDBView.close();    gDBView = null;  }  // cancel the pending mark as read timer  ClearPendingReadTimer();  // if this is the drafts, sent, or send later folder,  // we show "Recipient" instead of "Author"  SetSentFolderColumns(IsSpecialFolder(newFolder, MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE, true));  ShowLocationColumn(viewType == nsMsgViewType.eShowVirtualFolderResults);  // now create the db view, which will sort it.  CreateDBView(newFolder, viewType, viewFlags, sortType, sortOrder);  if (oldFolder)  {    /*disable quick search clear button if we were in the search view on folder switching*/    disableQuickSearchClearButton();     /*we don't null out the db reference for inbox because inbox is like the "main" folder       and performance outweighs footprint */    if (!IsSpecialFolder(oldFolder, MSG_FOLDER_FLAG_INBOX, false))      if (oldFolder.URI != newFolder.URI)        oldFolder.setMsgDatabase(null);  }  // that should have initialized gDBView, now re-root the thread pane  RerootThreadPane();  UpdateLocationBar(newFolder);  UpdateStatusMessageCounts(newFolder);    UpdateMailToolbar("reroot folder in 3 pane");  // hook for extra toolbar items  var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);  observerService.notifyObservers(window, "mail:updateToolbarItems", null);  // this is to kick off cross-folder searches for virtual folders.  if (gSearchSession && !gVirtualFolderTerms) // another var might be better...  {    viewDebug("doing a xf folder search in rerootFolder\n");    gDBView.searchSession = gSearchSession;    gSearchSession.search(msgWindow);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/521e88ace161b49892e826b3390f34a47ce78812/commandglue.js/buggy/mailnews/base/resources/content/commandglue.js