Visit Mozilla.org

Working with chrome URLs

From MDC

As a development aid, one can find out what a chrome URL resolves to by using the view-source: protocol and checking the document title. For example, if you put

view-source:chrome://browser/skin/browser.css

into the URL bar in Firefox, you will see the title of the window change to

jar:file:///F:/Program%20Files/Mozilla%20Firefox/chrome/classic.jar!/skin/classic/browser/browser.css

To resolve chrome URLs programatically at run-time, use the (unfrozen) nsIChromeRegistry interface.