rem:  outlinerSelection.clearSelection(); 
add:  treeSelection.clearSelection(); 
context: function RestoreSelectionWithoutContentLoad(outliner){    var outlinerBoxObj = outliner.outlinerBoxObject;    var outlinerSelection = outlinerBoxObj.selection;    // make sure that currentIndex is valid so that we don't try to restore    // a selection of an invalid row.    if((!outlinerSelection.isSelected(outlinerSelection.currentIndex)) &&       (outlinerSelection.currentIndex >= 0))    {        outlinerSelection.selectEventsSuppressed = true;        outlinerSelection.select(outlinerSelection.currentIndex);        outlinerSelection.selectEventsSuppressed = false;        // Keep track of which row in the thread pane is currently selected.        // This is currently only needed when deleting messages.  See        // declaration of var in msgMail3PaneWindow.js.        if(outliner.id == "threadOutliner")          gThreadPaneCurrentSelectedIndex = outlinerSelection.currentIndex;    }    else if(!gThreadPaneDeleteOrMoveOccurred && (outlinerSelection.currentIndex < 0))        // Clear the selection in the case of when a folder has just been        // loaded where the message pane does not have a message loaded yet.        // When right-clicking a message in this case and dismissing the        // popup menu (by either executing a menu command or clicking        // somewhere else),  the selection needs to be cleared.        // However, if the 'Delete Message' or 'Move To' menu item has been        // selected, DO NOT clear the selection, else it will prevent the        // outliner view from refreshing.        outlinerSelection.clearSelection();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js