rem: addListeners(); onSearch(); 
add: onSearch(null); 
context: function onEnterInSearchBar(){   if (!gDBView)      return;   if (!gSearchSession)   {     getDocumentElements();     var searchSessionContractID = "@mozilla.org/messenger/searchSession;1";     gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);     initializeGlobalListeners();   }   else   {     if (gSearchInProgress)     {       onSearchStop();       gSearchInProgress = false;     }     removeListeners();   }   if (gSearchInput.value == "")    {     var searchView = gDBView.isSearchView;     if (searchView)     {       statusFeedback.showStatusString("");       disableQuickSearchClearButton();       gDBView.reloadFolderAfterQuickSearch(); // that should have initialized gDBView     }     return;   }   else     gClearButton.setAttribute("disabled", false); //coming into search enable clear button   ClearThreadPaneSelection();   ClearMessagePane();   addListeners();   onSearch();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e366cde3393c76a06cbcfb9596898b2a90990946/searchBar.js/buggy/mailnews/base/resources/content/searchBar.js