nsIXMLHttpRequest fails without showing certificate dialog

Talk about add-ons and extension development.
Post Reply
poleta33
Posts: 120
Joined: October 14th, 2004, 2:06 pm

nsIXMLHttpRequest fails without showing certificate dialog

Post by poleta33 »

Hi

after setting the header Authorization, I use a nsIXMLHttpRequest for getting information from on website like this :

Code: Select all

httpChannel.open(method, url, true);
the problem is when the certificate is not valid or not known, the certificate dialog window does not pop up (I always get a response status 0)... is it normal ?
lithopsian
Posts: 3664
Joined: September 15th, 2010, 9:03 am

Re: nsIXMLHttpRequest fails without showing certificate dial

Post by lithopsian »

I think you're responsible for handling authentication errors and opening dialogs yourself. Password dialogs may be opened automatically though, depending on settings. Missing certificates do not return very helpful error codes. See this bug for background. For possible workarounds, see this page.
poleta33
Posts: 120
Joined: October 14th, 2004, 2:06 pm

Re: nsIXMLHttpRequest fails without showing certificate dial

Post by poleta33 »

perfect ! thanks a lot :O)
Post Reply