Closed Bug 1173895 Opened 9 years ago Closed 9 years ago

App-disabled add-ons can be enabled through the add-on manager context menu

Categories

(Firefox for Android Graveyard :: Add-on Manager, defect)

35 Branch
defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
Firefox 41
Tracking Status
firefox41 --- fixed

People

(Reporter: Margaret, Assigned: Margaret)

Details

Attachments

(1 file)

Add-ons can be disabled by Firefox if they're blocklisted (or unsigned, when we start requiring add-on signing), but we don't disable the "enable" context menu item for these force-disabled add-ons.

I would hope that this is just a UI bug that makes it look like the user actually enables these add-ons, but we should look into whether or not that enable functionality actually works. If it does, we should probably uplift a patch for this.
Bug 1173895 - Hide enable/disable context menu items for app disabled add-ons. r=liuche
Attachment #8621336 - Flags: review?(liuche)
(In reply to :Margaret Leibovic from comment #0)

> I would hope that this is just a UI bug that makes it look like the user
> actually enables these add-ons, but we should look into whether or not that
> enable functionality actually works. If it does, we should probably uplift a
> patch for this.

I verified that this isn't a security problem. Selecting "Enable" just makes the add-on look enabled, but doesn't change anything under the hood.
Summary: App disable add-ons can be enabled through the add-on manager context menu → App-disabled add-ons can be enabled through the add-on manager context menu
Comment on attachment 8621336 [details]
MozReview Request: Bug 1173895 - Hide enable/disable context menu items for app disabled add-ons. r=liuche

https://reviewboard.mozilla.org/r/10961/#review9575

Ship It!

::: mobile/android/chrome/content/aboutAddons.js:63
(Diff revision 1)
> +    if (addon.appDisabled) {

If we allow addons to be re-enabled, you should include a way to re-enable these addons if the addon.appDisabled flag becomes false (or if it doesn't exist anymore, whatever that method is).
Attachment #8621336 - Flags: review?(liuche) → review+
(In reply to Chenxia Liu [:liuche] from comment #3)
> Comment on attachment 8621336 [details]
> MozReview Request: Bug 1173895 - Hide enable/disable context menu items for
> app disabled add-ons. r=liuche
> 
> https://reviewboard.mozilla.org/r/10961/#review9575
> 
> Ship It!
> 
> ::: mobile/android/chrome/content/aboutAddons.js:63
> (Diff revision 1)
> > +    if (addon.appDisabled) {
> 
> If we allow addons to be re-enabled, you should include a way to re-enable
> these addons if the addon.appDisabled flag becomes false (or if it doesn't
> exist anymore, whatever that method is).

Yeah, currently we don't have any listeners in place to update the add-ons if their appDisabled state changes (more likely than not, add-ons would go from being enabled to disabled, since I don't see how we would decide to change our mind about an insecure add-on suddenly being secure). I'm going to be doing more work to deal with the UI for these disabled add-ons in bug 1170841.
https://hg.mozilla.org/mozilla-central/rev/59d7a4a0bd32
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: