hmm.. good question. i don't think there is a solution in place for this. we probably need to have a resource protocol startup category. then you could register your component to be loaded when necko is loaded and you would be able to setup your custom substitution in advance.
please file a bug on this... you can assign it to me. thanks, darin Tim Geisler wrote: > 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 >
