rem:  var searchURI = top._content.location.href; if (searchURI) { const lastSearchURIPref = "browser.search.lastMultipleSearchURI"; var offset = searchURI.indexOf("?"); if (offset > 0) { nsPreferences.setUnicharPref(lastSearchURIPref, searchURI); searchURI = searchURI.substr(offset+1); loadResultsList(searchURI); } else { searchURI = nsPreferences.copyUnicharPref(lastSearchURIPref, ""); offset = searchURI.indexOf("?"); 
add:  var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); iSearch.ClearResultSearchSites();   var searchURI = top._content.location.href; if (searchURI) { const lastSearchURIPref = "browser.search.lastMultipleSearchURI"; var offset = searchURI.indexOf("?"); 
context: function onLoadInternetResults(){  // clear any previous results on load  var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"]                          .getService(Components.interfaces.nsIInternetSearchService);  iSearch.ClearResultSearchSites();  // the search URI is passed in as a parameter, so get it and them root the results list  var searchURI = top._content.location.href;  if (searchURI) {    const lastSearchURIPref = "browser.search.lastMultipleSearchURI";    var offset = searchURI.indexOf("?");    if (offset > 0) {      nsPreferences.setUnicharPref(lastSearchURIPref, searchURI); // evil      searchURI = searchURI.substr(offset+1);      loadResultsList(searchURI);    }    else {      searchURI = nsPreferences.copyUnicharPref(lastSearchURIPref, "");      offset = searchURI.indexOf("?");      if (offset > 0) {        nsPreferences.setUnicharPref(lastSearchURIPref, searchURI); // evil        searchURI = searchURI.substr(offset+1);        loadResultsList(searchURI);      }    }  }  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a67a10763afad2444a8491c68871d9628e97fecf/internetresults.js/clean/suite/common/search/internetresults.js