I'm trying to understand in deep the chrome, and there are few things I can't 
find anywhere:

  * I don't understand how the chrome registry works

      I think the chrome specification by Dave Hyatt
         ( http://www.mozilla.org/xpfe/ConfigChromeSpec.html )
        is obsolete (??) because the manifest.rdf file doesn't exist (instead 
of it
      there are contents.rdf files).

  * I can't find how mozilla can resolve the chrome url's (I know mozilla makes 
it throught 
      chrome registry, but I don't know how)

  * In the chrome directory:
 
    I don't know the meaning of files all-skins.rdf, all-packagess.rdf, all-
locales.rdf....
    and their relation with the files user-skins.rdf, user-locales...

    and, the most important, the relation of all of them with the chrome 
registry, and how
    the chrome URL are resolved depending of the chrome providers.


  * I don't know what is a resource://.....     url  

  * Well, I don't know the role of "installed-chrome.txt" in this game. I know 
I must put in it the
    description of content, locale and skin parts of my package and mozilla 
will install them.

    But I don't know its relation with all-skins.rdf, user-skins.rdf, etc, etc. 
and with the
    chrome registry.

  * I have a bit of understanding of how select chrome skin and locale 
providers (or at least I 
    I think so, see the theory below), but what's the matter with content? How 
the provider is 
    selected between two or more content providers?

My actual theory of understanding how chrome registry (or something similar) 
works is 
   (e.g. with the skins of the navigator):

  * The file user-skins.rdf contains the skin selected in a concrete package. 
For example,
      for the package Navigator:

"....
  <RDF:Description about="urn:mozilla:package:navigator">
    <NS932:selectedSkin xmlns:NS932="http://www.mozilla.org/rdf/chrome#" 
resource="urn:mozilla:skin:classic/1.0:navigator"/>
  </RDF:Description>
...
"

  * So my selected skin is  ====> 
resource="urn:mozilla:skin:classic/1.0:navigator" <===
    in the file all-skins mozilla find a description for it 

"
....
  <RDF:Description about="urn:mozilla:skin:classic/1.0:navigator">
    <NS780:baseURL 
xmlns:NS780="http://www.mozilla.org/rdf/chrome#">jar:resource:/chrome/classic.ja
r!/skin/classic/navigator/</NS780:baseURL>
    <NS781:allowScripts 
xmlns:NS781="http://www.mozilla.org/rdf/chrome#">false</NS781:allowScripts>
    <NS782:package xmlns:NS782="http://www.mozilla.org/rdf/chrome#" 
resource="urn:mozilla:package:navigator"/>
  </RDF:Description>
....
"

  * And now, mozilla can resolve the chrome URL about my selected skin in 
        ===>   jar:resource:/chrome/classic.jar!/skin/classic/navigator/ <======



BUT (retorical questions, redundant from the questions above) 
  
  How it works? 
  Is correct my theory?
  Which files I must edit and which not?
  What the installed-chrome.txt entries do for me (and edit files for me)?
  
  HELP ME !!!!!!???????


Thank you in anticipate.

      JOSE LUIS GIL GIL



-------------------------------------------------
This mail sent through IMP: lazarin.info-ab.uclm.es


Reply via email to