rem: var rdf = Components.classes["component: 
add: var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(); 
context: function OpenBookmarkURL(event, 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);	}  	if (!window._content)	{        const WM_PROGID = "component://netscape/rdf/datasource?name=window-mediator";        var wm = nsJSComponentManager.getService(WM_PROGID, "nsIWindowMediator");        if (wm)        {          navWindow = wm.getMostRecentWindow("navigator:browser");          if (navWindow)          {            navWindow.appCore.loadUrl(url);          }        }        else        {      		window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url );        }	}	else if (event.metaKey)	{	    // if metaKey is down, open in a new browser window  		window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", url ); 	}	else	{		if(appCore)		{		    // support session history (if appCore is available)            appCore.loadUrl(url);		}		else		{		    // fallback case (if appCore isn't available)            window._content.location = url;		}  	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6cc70ebd6c97bd0b2fe48c31f579e855387ced9d/bm-panel.js/buggy/xpfe/components/bookmarks/resources/bm-panel.js