rem: var rootNode = document.getElementById(root); var ds = null; if (rootNode) { ds = rootNode.database; } 
context:   function OpenBookmarkURL(node, root)  {    if (node.getAttribute('container') == "true") {      return false;    }	var url = node.getAttribute('id');	try	{		var rootNode = document.getElementById(root);		var ds = null;		if (rootNode)		{			ds = rootNode.database;		}		// add support for IE favorites under Win32, and NetPositive URLs under BeOS		var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();		if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);		if (rdf)		{			if (ds)			{				var src = rdf.GetResource(url, true);				var prop = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true);				var target = ds.GetTarget(src, prop, true);				if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral);				if (target)	target = target.Value;				if (target)	url = target;							}		}	}	catch(ex)	{	}    // Ignore "NC:" urls.    if (url.substring(0, 3) == "NC:") {      return false;    }	// Check if we have a browser window	if ( window.content == null )	{		window.openDialog( "chrome://navigator/content/navigator.xul", "_blank", "chrome,all,dialog=no", url ); 	}	else	{  	  window.content.location.href = url;    	RefreshUrlbar();  	}  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/98fedd3c6e04793d52fef29cd1b154d17fc537a2/navigator.js/buggy/suite/browser/navigator.js