Bug 1562573 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Currently, `Services.appinfo.version` is [used to determine whether an application update has occurred](https://searchfox.org/mozilla-central/rev/29f8e6aebd2b2660b9c76858ccb0c6eaf35dd7aa/toolkit/mozapps/extensions/AddonManager.jsm#627), and consequently [whether to update distribution extensions](https://searchfox.org/mozilla-central/rev/29f8e6aebd2b2660b9c76858ccb0c6eaf35dd7aa/toolkit/mozapps/extensions/internal/XPIProvider.jsm#2607). `Services.appinfo.version` doesn't include the beta version number, and so a user on a beta channel does not get updates to distribution extensions beyond the first update time they update that version number.

I propose using `AppConstants.MOZ_APP_VERSION_DISPLAY` instead, which does include the beta version number. I'm willing to write the patch if such a change is acceptable.
Currently, `Services.appinfo.version` is [used to determine whether an application update has occurred](https://searchfox.org/mozilla-central/rev/29f8e6aebd2b2660b9c76858ccb0c6eaf35dd7aa/toolkit/mozapps/extensions/AddonManager.jsm#627), and consequently [whether to update distribution extensions](https://searchfox.org/mozilla-central/rev/29f8e6aebd2b2660b9c76858ccb0c6eaf35dd7aa/toolkit/mozapps/extensions/internal/XPIProvider.jsm#2607). `Services.appinfo.version` doesn't include the beta version number, and so a user on a beta channel does not get updates to distribution extensions beyond the first update time they update to that version number.

I propose using `AppConstants.MOZ_APP_VERSION_DISPLAY` instead, which does include the beta version number. I'm willing to write the patch if such a change is acceptable.

Back to Bug 1562573 Comment 0