A.J.Brush wrote:
am trying to get toolbar in a testable state without going through with the whole installation procedure with XPI files etc... (partly I expect that procedure to be cumbersome and will need to be repeated lots during development, and partly I don't see a "de-install" heading anywhere) - so I'm looking at "installed-chrome.txt" for getting the thing going... I see a typical line in this file is:

locale,install,url,jar:resource:/chrome/cview.jar!/locale/en-US/cview/

it all seems to refer to java files and I understand these refer to an rdf file which 
refers to my xul file -
I've given up on making sense of the documentation this evening - am I on the right 
lines so far?, do I need to create a jar and an rdf file to test my xul file? Also 
what is the syntax used in installed-chrome so that I can add to it? Is there a simple 
example I can crib from anywhere?

Please use npd.xul for this stuff (or npm.xpinstall). This has little/nothing to do with XPCOM.


You don't need a JAR file, you can use ordinary flat files instead of zipping them up. For example, put your files in the folder [mozilladir]/chrome/myextensionfiles/, and put this line in installed-chrome.txt:

content,install,url,resource:/chrome/myextensionfiles/

You *do* need a contents.rdf file, but you can probably just copy a simple extension and change the obvious things that need changing:

<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
         xmlns:chrome="http://www.mozilla.org/rdf/chrome#";>

  <!-- list all the packages being supplied by this jar -->
  <RDF:Seq about="urn:mozilla:package:root">
    <RDF:li resource="urn:mozilla:package:mystuff"/>
  </RDF:Seq>

  <!-- package information -->
  <RDF:Description about="urn:mozilla:package:mystuff"
        chrome:displayName="SuperDuper Extension"
        chrome:author="me!"
        chrome:localeVersion="1.6"
        chrome:name="mystuff">
  </RDF:Description>

  <!-- overlay information -->
  <RDF:Seq about="urn:mozilla:overlays">
    <RDF:li resource="chrome://navigator/content/navigator.xul"/>
  </RDF:Seq>

  <RDF:Seq about="chrome://navigator/content/navigator.xul">
    <RDF:li>chrome://mystuff/content/browser-overlay.xul</RDF:li>
  </RDF:Seq>
</RDF:RDF>

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to