Re: SSL and XUL iframe
Neil <[email protected]> Sat, 13 Sep 2014 17:22:55 +0100
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
rvj wrote: > What I would like to do is trap load time SSL errors > > For example I have set up a self signed website which does not load... > > .. but these errors are only reported via the error console > > I would at least like to trap such messages using js but how do I trap > them? > > Is there a special event handler for SSL so I dont need to view the > error console..? Not as such, you have to watch for the state change web progress notifications, and when you get a document stop with an error status in the security module you have to use the NSS errors service to translate that into an error class to see if the error was due to an invalid certificate. -- Warning: May contain traces of nuts.