rem: var resultsTree = navWindow._content.document.getElementById("internetresultstree"); if (resultsTree) { var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.database; 
add: var resultsList = navWindow._content.document.getElementById("resultsList"); if (resultsList) { var treeref = resultsList.getAttribute("ref"); var ds = resultsList.database; 
context: function checkSearchProgress(){  var activeSearchFlag = false;  var navWindow = getNavigatorWindow(false);  if (navWindow) {    var resultsTree = navWindow._content.document.getElementById("internetresultstree");    if (resultsTree) {      var treeref = resultsTree.getAttribute("ref");      var ds = resultsTree.database;      if (ds && treeref) {        try {          var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService);          var source = rdf.GetResource(treeref, true);          var loadingProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#loading", true);          var target = ds.GetTarget(source, loadingProperty, true);          if (target)            target = target.QueryInterface(nsIRDFLiteral).Value;          activeSearchFlag = target == "true" ? true : false;        }        catch (ex) {          activeSearchFlag = false;        }      }    }  }  if (activeSearchFlag)    setTimeout("checkSearchProgress()", 1000);  else    doStop();  return activeSearchFlag;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a376ddc0531725ad80728692bef9c8ab8b17636c/search-panel.js/buggy/suite/common/search/search-panel.js