I am trying to set up a URL substitution using the resource protocol handler. That is, URLs of the form resource:/my-key/xyz should be rewritten to my-prefix/xyz. This works fine using the method setSubstitution of the resource: protocol handler. (The substitution can be configured via the preferences.)
However, some of the URLs of the form resource:/my-key/xyz are used from CSS and XUL files. Sometimes, these URLs get referenced _BEFORE_ the substitution is set up with the resource: protocol handler. I use some self-defined XPCOM component which sets up this substitution. However, this component is sometimes created too late. Currently I am a bit clueless where to set up this substitution. Is there any possibility to guarantee creating this substitution before the whole XUL machinery is loaded? Thanks for your help, Tim
