rem: var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"].getService(); if (iSearch) iSearch = iSearch.QueryInterface(Components.interfaces.nsIInternetSearchService); if (iSearch) iSearch.ClearResultSearchSites(); 
add: var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); iSearch.ClearResultSearchSites(); 
context: function onLoadInternetResults(){  // HACK HACK HACK HACK HACK HACK - chrome urls are being stored in sh as file urls!  // access to xpconnect is denied! ack! erk! ork!  try {    var pref = Components.classes["@mozilla.org/preferences;1"].getService();    if (pref) pref = pref.QueryInterface(Components.interfaces.nsIPref);  }   catch(e) {    // ok, we're toast. user clicked back, loaded as file url, no xpconnect. abort,     // reload.    const searchResults = "chrome://communicator/content/search/internetresults.xul"    if (top.appCore) top.appCore.loadUrl(searchResults);    else top._content.location.href = searchResults;    return; // ABORT.   }  // clear any previous results on load	var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"].getService();	if (iSearch) iSearch = iSearch.QueryInterface(Components.interfaces.nsIInternetSearchService);	if (iSearch) iSearch.ClearResultSearchSites();  // the search URI is passed in as a parameter, so get it and them root the results tree  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);      loadResultsTree(searchURI);    }    else {        searchURI = nsPreferences.copyUnicharPref(lastSearchURIPref, "");      offset = searchURI.indexOf("?");      if (offset > 0) {        nsPreferences.setUnicharPref(lastSearchURIPref, searchURI); // evil        searchURI = searchURI.substr(offset+1);        loadResultsTree(searchURI);      }    }  }  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/04472a2b728d7715057fe402a46af32a5081325f/internetresults.js/buggy/suite/common/search/internetresults.js