rem: var url = node.getAttribute('id'); try {  var rdf = Components.classes["component: if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf && datasources) { var src = rdf.GetResource(url, true); var prop = rdf.GetResource("http: var target = datasources.GetTarget(src, prop, true); if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral); if (target)	target = target.Value; if (target)	url = target; } } catch(ex) { }   if (url.substring(0, 3) == "NC:") { return false; }  if ( window.content == null ) { window.openDialog( "chrome: } else { window.content.location.href = url; RefreshUrlbar(); } } 
add:  if (url.substring(0, 3) == "NC:") return false;   if ( window.content == null ) window.openDialog( "chrome: else window.content.location.href = url; RefreshUrlbar(); } 
context:   function OpenBookmarkURL(node, datasources)  {    if (node.getAttribute('container') == "true") {      return false;    }	var url = node.getAttribute('id');	try	{		// 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 && datasources)		{			var src = rdf.GetResource(url, true);			var prop = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true);			var target = datasources.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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/504dbe197757dfd7174946e37fd3dbb61e55759e/navigator.js/buggy/suite/browser/navigator.js