Mfenetre wrote: > I would like to write a Firefox plugin handling Http Digest > authentication (401)
Could also be 407 :) Also, you mean extension, not plugin -- in Firefox, the two terms have a quite different meaning. > I started to think about how I could buildmy new component. So the > question is : if I want Firefox to use my component to handle Http > Digest authentication, how could I do that ? Do I have to use the same > contractID than the existing one (i.e. "@mozilla.org/network/http- > authenticator;1?scheme=digest") ? But in this case, can I still have > access to the "original" component (buit-in in Firefox) ? Correct, you can register your component under the same contract ID, but with a different class ID (CID). Then, if you want access to the original component, you can get it by its CID. > More generally speaking, my question is, how do you "override" an > existing component ? Is it possible to do that ? If I declare a new > component with an already existing contractID, how can I know which > one will be used ? Components that are parts of extensions always override components that are part of Firefox itself. -- All the world's a stage, And all the men and women merely players: They have their exits and their entrances; And one man in his time plays many parts, [...] --W. Shakespeare _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
