Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

My extension's update.json isn't working; how do I troubleshoot it?

more options

manifest.json has:

 "applications": {
   "gecko": {
     "id": "button@booktrakr.com",
     "update_url": "https://www.booktrakr.com/uploads/downloads/firefox-updates.json"
   }
 },

When I try to load the update_url in my browser, it works fine using the URL quoted above. My update file looks like: { "addons": { "updates": [ { "version": "0.3.3", "update_link": "https://www.booktrakr.com/uploads/downloads/BookTrakr%20Button%20for%20Firefox.xpi"} ] } }

If I copy that URL into my browser, it downloads the file, so the URL seems to be correct.

When I try to force an auto-update, FF appears to look for an update, but nothing installs and my extension remains version 0.3.2. Can't find any help on how to troubleshoot this situation. Can someone suggest some techniques for troubleshooting or point me to a blog post or something?

manifest.json has: "applications": { "gecko": { "id": "button@booktrakr.com", "update_url": "https://www.booktrakr.com/uploads/downloads/firefox-updates.json" } }, When I try to load the update_url in my browser, it works fine using the URL quoted above. My update file looks like: { "addons": { "updates": [ { "version": "0.3.3", "update_link": "https://www.booktrakr.com/uploads/downloads/BookTrakr%20Button%20for%20Firefox.xpi"} ] } } If I copy that URL into my browser, it downloads the file, so the URL seems to be correct. When I try to force an auto-update, FF appears to look for an update, but nothing installs and my extension remains version 0.3.2. Can't find any help on how to troubleshoot this situation. Can someone suggest some techniques for troubleshooting or point me to a blog post or something?

Všetky odpovede (2)

more options

The XPI file is send by the server as text/plain and not as application/x-xpinstall that is used for extensions. so you would have to configure the server to send the correct content type for an XPI file.

Upravil(a) cor-el dňa

more options

Also, there is a forum for extension developers here:

https://discourse.mozilla.org/c/add-ons