Migrating from the Firefox Add-on to WebExtensions: Additional Update Versions in Older Versions of Firefox

We have a Firefox extension that has recently been ported from the Firefox add-in architecture to the "new" WebExtensions architecture, but we have a few problems:

  • There is a bug that prevents our extension from working in FF49 using WebExtensions.
  • We want to support support for the old add-ons version at https://addons.mozilla.org to support customers using older versions of Firefox, including Firefox ESR, but also want to make WebExtensions available to those who prefer the latest and greatest browser version.

My question is: can I have several versions of our extension at http://addons.mozilla.org/ that are supported for certain versions of Firefox? those. version 1 of our extension supports FF <= 49; version 2 supports FF> = 50.

+4
source share
1 answer

Yes, you can have several versions of your optional extension that are compatible with the specified ranges of versions of Firefox. This ability has been around for many years.

In the manifest.json file, you can specify strict_min_version:

"applications": {
  "gecko": {
    "id": "addon@example.com",
    "strict_min_version": "42.0",
    "strict_max_version": "50.*",
    "update_url": "https://example.com/updates.json"
  }
}

manifest.json Firefox 45 ( WebExtensions). . Firefox AMO Developer Hub.

AMO Developer Hub " " ( ):
AMO menu selection

, " ", , .

Firefox, :
AMO Firefox Version Compatibility

. , , ​​, Firefox, , . , AMO Firefox , .

strictCompatibility install.rdf, Firefox ( Firefox). , install.rdf. WebExtension strict_max_version . Json.

, AMO, . , Firefox, , , .xpi / AMO Developer Hub , . , Firefox, .

:
, Embedded WebExtension, , WebExtensions.

+3

Source: https://habr.com/ru/post/1660192/


All Articles