rem: setTimeout("restoreSearchFocusAfterClear();", 0); 
add: if (gQuickSearchFocusEl) setTimeout("restoreSearchFocusAfterClear();", 0); 
context: function onClearSearch(){  if (!gSearchInput.showingSearchCriteria) // ignore the text box value if it's just showing the search criteria string  {    gQuickSearchFocusEl = gLastFocusedElement;  //save of the last focused element so that focus can be restored  Search("");    // this needs to be on a timer otherwise we end up messing up the focus while the Search("") is still happening    setTimeout("restoreSearchFocusAfterClear();", 0);   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/71d31c6e757a07d4efad1ed34a028010ac9882ab/searchBar.js/clean/mail/base/content/searchBar.js