开发者

Is there a way to override maxVersion check on a firefox extension?

开发者 https://www.devze.com 2023-01-18 16:30 出处:网络
Is there a way to override the use of maxVersion in firefox extensions so if a new firefox update comes out the extension will still work? I think this can be done 开发者_如何学Cby setting a new bool

Is there a way to override the use of maxVersion in firefox extensions so if a new firefox update comes out the extension will still work? I think this can be done 开发者_如何学Cby setting a new bool in about:config but I am trying to do it from the extension itself.


I don't know a way to do it only for a single extension, and it really doesn't make sense. Inevitably, it will eventually stop working. You can set it to an arbitrarily high value, though:

<em:maxVersion>100.0</em:maxVersion>

This means you can't distribute it through AMO (for good reason), but you're free to do so independently.


How do you mean by overriding maxVersion? maxVersion is there for protecting you and your users from possible BC breaks in Firefox and Gecko. You can set it as high as you want though.

But if you want to prevent Firefox from checking compatibility, creating boolean key extensions.checkCompatibility and setting it to false is the way to go, though it's advised only when developing extensions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号