Add-ons set to AUTOUPDATE_DISABLE should not show automatic updates UI

RESOLVED INVALID

Status

()

Toolkit
Add-ons Manager
RESOLVED INVALID
5 years ago
5 years ago

People

(Reporter: Jason Barnabe (np), Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
Stylish adds add-on items with applyBackgroundUpdates = AddonManager.AUTOUPDATE_DISABLE. Despite this, Firefox shows the Automatic Updates : Default/On/Off UI in the page for the add-on item in the add-ons manager. This UI should be hidden if applyBackgroundUpdates is set as such.

To reproduce:

1. Install Stylish - https://addons.mozilla.org/en-US/firefox/addon/stylish/
2. Go to userstyles.org, install any style.
3. Go to the add-ons manager.
4. Go to the User Styles panel.
5. Click More for the entry of the user style you installed.
6. Notice Automatic Updates UI.
(Reporter)

Comment 1

5 years ago
Or maybe I'm misunderstanding this parameter. Is this supposed to represent what the developer wants to happen with the item, or is it supposed to represent the user's choice in the UI? If the latter, is it expected that the add-on item provider would be storing the user's choice (as opposed to Firefox itself remembering it)?
That UI maps to the applyBackgroundUpdates property - it's a user-setting (though I guess the provider can give it a default other than AUTOUPDATE_DEFAULT). And yes, the provider is expected to store that value when its set.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
(Reporter)

Comment 3

5 years ago
Thanks for the info. I've got it working correctly now and I've updated https://developer.mozilla.org/en-US/docs/Addons/Add-on_Manager/Addon .
You need to log in before you can comment on or make changes to this bug.