[Project_owners] How auto update looks for updates?

Michael Vincent van Rantwijk, MultiZilla mv_van_rantwijk at yahoo.com
Mon Jul 16 14:56:23 PDT 2007

Foreningen Selvet - Jesper Staun Hansen wrote:
> Really useful. Thanks :)
> But if I use https protocol as the guide recommends against 
> https://heroes.mozdev.org/update.rdf then firefox update will error. But 
> if I use against http://heroes.mozdev.org/update.rdf then it finds an 
> update. I find that strange.

That's because of the certificate mismatch (only www.mozdev.org is 
allowed) but you can change the following code in nsExtensionManager.js 
to make it work:

   confirmMismatchDomain: function(socketInfo, targetURL, cert) {
     LOG("EM BadCertHandler: Mismatched domain");
     return false;

All you have to do is to change the (boolean) "false" to "true" and 
you're done for your testing ;)

Michael Vincent van Rantwijk
- MultiZilla Project Team Lead
- XUL Boot Camp Staff member
- iPhone Application Developer

More information about the Project_owners mailing list