Firefox Addon Development for Multiple SDK Versions

I see that each cfx tools always creates xpi with its own minVersion and maxVersion. However, they are limited to versions compatible with the SDK, for example, SDK 1.14 only for FF 21 - 25.0a1, SDK 1.17 only for FF 26-30. My questions:

  • Do I need to update the package with a new SDK every time a new version appears?
  • How do I save and update the extension in the future? Does an application hub addon provide a way to send the same extension to multiple versions of the SDK? I tried to look back, but could not find a way to send multiple versions. I want to make FF 21 the minimum version, since the version in which the SDK is built-in. My extension is currently compiled with both SDK 1.14 and SDK 1.17 using only cosmetic (syntactic) settings.
+4
source share
2 answers

, Firefox . minVersion maxVersion install.rdf. , Firefox 22+, , SDK , SDK .

( ), API SDK, , . :

- :

const { version } = require('sdk/system/xul-app');
if (version < 29) var widget = require("sdk/widget").Widget({...});
else var button = require("sdk/ui/button/action")({...});

, :

  • , SDK , .
  • , . , .
+1

, , , , , , , SDK .

, .

:

strictCompatibility

, , , . , , .

<em:strictCompatibility>true</em:strictCompatibility>

, : , AMO, , . , , , . , , , Firefox. , , ( ).

.

minVersion maxVersion . , maxVersion, , , , API UI . , maxVersion.

, , AMO , , .

+1

All Articles