rem: if (url) { try { var autoOpenSearchPanel = pref.getBoolPref("browser.search.opensidebarsearchpanel"); 
add: if (url && isSearchPanelOpen()) { if (!gSearchService) gSearchService = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); 
context: function UpdateInternetSearchResults(event){  var url = getWebNavigation().currentURI.spec;  if (url) {    try {      var autoOpenSearchPanel =         pref.getBoolPref("browser.search.opensidebarsearchpanel");      if (autoOpenSearchPanel || isSearchPanelOpen())      {        if (!gSearchService)          gSearchService = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"]                                         .getService(Components.interfaces.nsIInternetSearchService);        var searchInProgressFlag = gSearchService.FindInternetSearchResults(url);        if (searchInProgressFlag) {          if (autoOpenSearchPanel)            RevealSearchPanel();        }      }    } catch (ex) {    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2ea250415d7eabf72de234f5ca5b522b9f734696/navigator.js/clean/suite/browser/navigator.js