File URL To Chrome/Resource URL
"Edmond Begumisa" <[email protected]> Fri, 30 Dec 2011 02:06:16 +1100
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Organization | Hysteria Technological Ltd. |
| Message-ID | <op.v69awqskqce0em@mrcoolness> |
Hello all, I'm working on an extension to link Venkman to Komodo with the aim of providing local and remote debugging of XULRunner applications. Small question... nsIChromeRegistry::convertChromeURL and nsIResProtocolHandler::resolveURI provide a convenient way of getting a local file path from chrome:* and registry:* URIs. Anyone know of an equally easy way of doing the opposite? That is, finding the first chrome: or resource: URI resolving to a particular local file: URI? I'm currently painfully walking through the ChromeML directory service, reading manifests from disk, parsing them, then doing regex trickery to construct a dictionary of file URIs to compare to but I'm sure someone must have already found an easier way deep in the Mozilla code. Thanks in advance. - Edmond - -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/