rem: var searchURI = top._content.location.href; 
add: var searchURI = top.content.location.href; 
context: function onLoadInternetResults(){  if (gbProcessOnloadEvent)  { // forbid other onload events    gbProcessOnloadEvent = false;    // 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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/766d404cfe3d0b6d61d9fede0b76e1d13ab33d52/internetresults.js/buggy/xpfe/components/search/resources/internetresults.js