Phil H�hn wrote:
So your object registers itself for this contract, overriding the Mozilla urichecker?

Yes, it does register itself for this contract.... 'override the Moz urichecker'?? Is there one already (that I can use)?

Well, what does calling createInstance() on that contractid give you without your changes? You get an instance of nsURIChecker.


However if I create a second object (same type of class, i.e validate page URL and setup callback) then the first callback doesn't get called.

Does this second object _also_ register itself for the same contract?


You can only have one class registered for a particular contractid; if another one is registered, it takes over the handling of the contractid.

Ah, that's what I needed to know. So I have to serialise requests? Uggg...

Er, no. Are we creating two instances of the same class? Or are we registering two different components for the same contractid? The former should work just fine. The latter will result in the later of the two being registered.


-Boris
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to