rem: var	resultsTree = top._content.document.getElementById("internetresultstree"); 
add: var navWindow = getNavigatorWindow(); var	resultsTree = navWindow._content.document.getElementById("internetresultstree"); 
context: function checkSearchProgress(){	var	activeSearchFlag = false;	var	resultsTree = top._content.document.getElementById("internetresultstree");	if(resultsTree)	{	    	var treeref = resultsTree.getAttribute("ref");    	var ds = resultsTree.database;    	if (ds && treeref)    	{    		try    		{                var rdf = Components.classes[RDFSERVICE_PROGID].getService(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;    				if (target == "true")    				{    					activeSearchFlag = true;    				}    				else    				{    					activeSearchFlag = false;    				}    			}    		}    		catch(ex)    		{				activeSearchFlag = false;    		}    	}    }	if( activeSearchFlag )	{		setTimeout("checkSearchProgress()", 1000);	}	else	{		doStop();	}  	return(activeSearchFlag);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/3963ae2d5f0ad2d5070b78fe97d3cfa43d053907/search-panel.js/clean/xpfe/components/search/resources/search-panel.js