rem: 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 = nsJSComponentManager.getService(RDFSERVICE_CONTRACTID, "nsIRDFService"); if (rdf) { 
add:  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); 
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 = nsJSComponentManager.getService(RDFSERVICE_CONTRACTID, "nsIRDFService");        if (rdf) {          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);          if (target)	target = target.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/c837d8cd69e2d1c5d2619fe01ec4c3979b2e5f7e/search-panel.js/buggy/suite/common/search/search-panel.js