Hi, thanks for the info. I tried that but got recursive call problems,
so I guess I did not implement that properly.

Anyway, I don't think it's a good thing doing that, so I ended up
registering as an observer for http requests, and attached a
badcertlistener to every https request. If the condition I wanted to
check did not hold, I just displayed the usual bad cert dialogs.

Mark


On Aug 19, 8:37 pm, Christian Biesinger <[EMAIL PROTECTED]> wrote:
> Nickolay Ponomarev wrote:
> > I didn't check the code now, but IIRC you should set
> > notificationCallbacks of a channel to an object that can be
> > getInterface'd to nsIBadCertListener. If you figure it out, please add
> > an example to the code snippets at developer.mozilla.org.
>
> If you want a global observer, you need to register under the same
> contract ID as the existing bad cert listener
> (@mozilla.org/nsBadCertListener;1) and forward calls to the old listener
> as needed.


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to