Closed Bug 1451733 Opened 7 years ago Closed 7 years ago

Cleanup unused AddonManager code

Categories

(Testing :: Mozbase, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox61 fixed)

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: ahal, Assigned: ahal)

References

Details

Attachments

(3 files)

Mozprofile's AddonManager has a bunch of features that don't appear to be used anywhere. This includes installing addons from manifests, from urls and from AMO. I'd like to simplify it down to the bare minimum required to get addons installed given a local file path, possibly to the point where it is just an instance method on the Profile class. I'm attempting to standardize an API for managing profiles that extend across Firefox, Chrome and potentially other browsers in the future. Having all this extra cruft will make this harder to accomplish. CC'ed a bunch of people, please let me know if you are aware of anything using these features (I couldn't find any via dxr).
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
This sounds fine, I always thought that part of mozprofile was rather overengineered. FWIW the mozregression code that installs addons is around here. It doesn't use any of the fancier features that you mention: https://github.com/mozilla/mozregression/blob/5b468a469280978bac6401db5d772e5973e46135/mozregression/launchers.py#L154
I'm purposefully not version bumping just yet as I'll be working on some other major possibly breaking changes shortly after this.
Attachment #8965472 - Flags: review?(jmaher)
Attachment #8965473 - Flags: review?(jmaher)
Attachment #8965474 - Flags: review?(jmaher)
Comment on attachment 8965472 [details] Bug 1451733 - [mozprofile] Remove ability to install from a manifest https://reviewboard.mozilla.org/r/234230/#review240134 this looks like a clean extraction
Attachment #8965472 - Flags: review?(jmaher) → review+
Comment on attachment 8965473 [details] Bug 1451733 - [mozprofile] Remove ability to download addons from AddonManager https://reviewboard.mozilla.org/r/234232/#review240138
Attachment #8965473 - Flags: review?(jmaher) → review+
Comment on attachment 8965474 [details] Bug 1451733 - [mozprofile] Clean up the public facing addons API a bit https://reviewboard.mozilla.org/r/234234/#review240142 excellent
Attachment #8965474 - Flags: review?(jmaher) → review+
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/796b0795dc5a [mozprofile] Remove ability to install from a manifest r=jmaher https://hg.mozilla.org/integration/autoland/rev/538664e0c822 [mozprofile] Remove ability to download addons from AddonManager r=jmaher https://hg.mozilla.org/integration/autoland/rev/5a16ea729deb [mozprofile] Clean up the public facing addons API a bit r=jmaher
Depends on: 1452769
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: