add:  if (target != textNode.value) {  var categoryPopup = document.getElementById( "categoryPopup" ); var categoryList = document.getElementById( "categoryList" ); if (categoryPopup && categoryList) { categoryList.selectedItem = categoryPopup.childNodes[0]; } }  
context: function rememberSearchText(target){  if (target) {    target = target.QueryInterface(nsIRDFLiteral).Value;    if (target) {      // convert plusses (+) back to spaces      target = target.replace(/+/i, " ");      var textNode = document.getElementById("sidebar-search-text");      textNode.value = unescape(target);      doEnabling();    }  }  // show the results tab  switchTab(0);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/36a30c6e5bba33229a609578d496f913caa1ac1e/search-panel.js/buggy/xpfe/components/search/resources/search-panel.js