Neil Stansbury wrote:

The only solution I could find was to add to the "/extension/defaults/" path and work with it manually from there.

We have the same issue copying icons into the "chrome/icons/default" directory. Ben Goodgers docs on the new extension format do illude to these issues.

Hrm, we don't pick up icons directly from there? We probably should, I'll file a bug.


Yep this is an RDF preference file, but it is likely to get far too big for localstore. Also, this is being remotely deployed so it make sense for it to be separate.

If it's a preference file, why do you need to ship a default anyway?

But there's an easier way to do this. Ship the default in your chrome, and parse it using the RDF system:

var rdfdatasource = rdfservice.GetDataSourceBlocking("chrome://content/myapp/defaultprefs.rdf");

rdfdatasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).FlushTo(mylocalfile.path);

--BDS
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to