Closed Bug 1517775 Opened 5 years ago Closed 5 years ago

System update uninstall all the system addon and reinstalls them

Categories

(Toolkit :: Add-ons Manager, defect, P5)

64 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: trishul.goel, Assigned: trishul.goel)

Details

Attachments

(2 files)

Attached image XPIInstall-jsm-3256.png
What: On every update for system addons, all the system addons are uninstalled and them reinstalled, there should be no uninstall of the addons which are received in the update.

Observation:
In XPIInstall.jsm, in `installAddonSet` method, it checks `aAddons.includes(addonID)` and if not present in the set received from updates, it should uninstall the respective addon. But this condition is always false(as its trying to compare object to string) and hence all system addons are uninstalled.

aAddons => an Array of (addon)Objects
addonID => a String
aAddons.includes(addonID) => always false

https://dxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/internal/XPIInstall.jsm#3256
Flags: needinfo?(jhirsch)
Hi there - There's no need to needinfo anyone to try to get attention for your bug. All new bugs are triaged by the addons team following their regular schedule: https://wiki.mozilla.org/Add-ons/Contribute/Triage
Flags: needinfo?(jhirsch)
1. Its a Firefox Bug | Not a feature request and for sure its not 'my bug'
2. Bug reporting is generally about bringing to attention | Not trying to get attention
3. Volunteering is considered a friendly business | Thanks for your 'unfriendly' comment
4. Consider removing 'Needinfo please' from your name? | If you don't want one.
(In reply to Trishul from comment #2)
> 1. Its a Firefox Bug | Not a feature request and for sure its not 'my bug'
> 2. Bug reporting is generally about bringing to attention | Not trying to get attention
> 3. Volunteering is considered a friendly business | Thanks for your 'unfriendly' comment
> 4. Consider removing 'Needinfo please' from your name? | If you don't want one.

Trishul, I think you're reading a tone into Jared's comment that isn't there.

He's not being unfriendly, he's just pointing out protocol and removing himself from the thread. (By "attention" he doesn't mean that you're saying "look at me!" -- but rather "please don't miss this bug!")

The Add-ons team triages all Add-ons bugs weekly (based on the Product and Component of the bug), without any needinfo's being added.

Jared's "needinfo please" is standard practice, as is asking for needinfo on a particular issue or once a bug fix is in progress -- but in this case, he's not a good candidate for a needinfo anyway as he's not on the Add-ons team.

* * *

That said, this is a place where our work overlaps with other teams, so a regression window for this would probably help diagnose it faster.
Hi David, I might have misunderstood this.
Thanks for clarifying and moving this faster.
This does look like a real bug to me based on comment #0, thanks Trishul for digging into that!

I recall there being a test for this so I suspect it's broken.
This looks like a long-standing bug, and I don't see any existing test that covers this.
In any case, it only occurs when there is a change to the set of active system addons.
Priority: -- → P5
Assignee: nobody → trishul.goel

Prevents uninstall of all system addons at time of update

Whiteboard: checkin-needed
Status: NEW → ASSIGNED
Keywords: checkin-needed

Pushed by nbeleuzu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4706c0aade4
Prevents uninstall of all system addons at time of update r=aswan

Keywords: checkin-needed
Whiteboard: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: