Search code examples
firefox-addon-sdk

How do you specify a minimum required version with the Mozilla addon-sdk cfx tool?


Building a traditional Firefox extension, you would set the minVersion field in the install.rdf. Since that is abstracted away by package.json and cfx, is there any way to set a minVersion?

Motivation: Because of certain changes to behavior in the contextMenu API, my add-on only works as expected from a certain versions of the Addon-SDK and upwards. I'd like to enforce this constraint.


Solution

  • From the Add-on SDK docs
    Changing minVersion and maxVersion Values