[Project_owners] Re: chrome:rdf problem

HJ bugus at universum.org
Mon Nov 1 11:47:53 EST 2004


HJ wrote:
> This fails to work:
> var rv;
> var rdfService = 
> Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); 
> 
> var rdfDS = rdfService.GetDataSource("rdf:chrome");
> var resSelf = rdfService.GetResource("urn:mozilla:package:multiviews");
> var resDisabled = 
> rdfService.GetResource("http://www.mozilla.org/rdf/chrome#disabled");
> rv = rdfDS.GetTarget(resSelf, resDisabled, true);
> 
> Note that using any of these: baseURL, locType, name, displayName, 
> author, authorURL, settingsURL, description, extension and skinVersion
> works perfectly, but 'disabled' is only located in the profiles copy of 
> chrome.rdf, so I guess that is why it fails. However, this displays the 
> disable attribute:
> 
> <menupopup datasources="rdf:chrome" ref="urn:mozilla:package:root">
> <template xmlns:chrome="http://www.mozilla.org/rdf/chrome">
> <rule chrome:extension="true">
> <menuitem uri="..." 
> label="rdf:http://www.mozilla.org/rdf/chrome#disabled"/>
> </rule>
> </template>
> </menupopup>
> 
> Is there a work around for this problem?
> 
> TIA,
> /HJ

Is there a mozilla newsgroup where I should ask, just in case nobody 
either cares or knows about this problem?

TIA,
/HJ


More information about the Project_owners mailing list