Firefox Extension automatic update not working -
i followed instructions here , after installed opened console mode debug log stuck there without response: console shows following , nothing more output:
*** log addons.updates: requesting https://www.extension.host.com/update.rdf my install.rdf is:
<?xml version="1.0"?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:id>webmailchecker@mozilla.doslash.org</em:id> <em:name>webmail checker firefox</em:name> <em:version>1.0</em:version> <em:description>webmail checker</em:description> <em:updateurl>https://www.extension.host.com/update.rdf</em:updateurl> <!-- firefox --> <em:targetapplication> <description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>3.6</em:minversion> <em:maxversion>23.*</em:maxversion> </description> </em:targetapplication> </description> </rdf> and update.rdf is:
<?xml version="1.0" encoding="utf-8"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <rdf:description about="urn:mozilla:extension:webmailchecker@mozilla.doslash.org"> <em:updates> <rdf:seq> <!-- each li different version of same add-on --> <rdf:li> <rdf:description> <em:version>1.0</em:version> <em:targetapplication> <rdf:description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>1.5</em:minversion> <em:maxversion>23.*</em:maxversion> <em:updatelink>https://www.extension.host.com/firefox.xpi</em:updatelink> </rdf:description> </em:targetapplication> </rdf:description> </rdf:li> <rdf:li> <rdf:description> <em:version>2.0</em:version> <em:targetapplication> <rdf:description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>1.5</em:minversion> <em:maxversion>23.*</em:maxversion> <em:updatelink>https://www.extension.host.com/firefox_2.0.xpi</em:updatelink> </rdf:description> </em:targetapplication> </rdf:description> </rdf:li> </rdf:seq> </em:updates> </rdf:description> </rdf:rdf> in server side, both of update.rdf , xpi file returned javax.ws.rs.core.response , have configured mimemapping in web.xml following:
<mime-mapping> <extension>xpi</extension> <mime-type>application/x-xpinstall</mime-type> </mime-mapping> <mime-mapping> <extension>rdf</extension> <mime-type>text/xml</mime-type> </mime-mapping> anything missed? automatic update not working.
today issue again , solved this. , update answer in case else need this. looked source code addonupdatechecker.jsm should earlier. used javascript debugger debug update. before this, didn't see logs indicating should have builtincertificate. , found it's looking pref values certificates. extensions.install.requirebuiltincerts , extensions.update.requirebuiltincerts.
set these 2 prefs values false , udpate works.
others different ssl certificate may not meet problem maybe.
Comments
Post a Comment