Closed Bug 1053729 Opened 10 years ago Closed 7 years ago

Remove old GMP installs

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal
Points:
3

Tracking

()

RESOLVED INACTIVE

People

(Reporter: gfritzsche, Unassigned)

References

Details

We should check for old GMP installs and remove them. Given the path convention of <profile-dir>/<gmp-plugin-id>/<version>, we can just check if <profile-dir>/<gmp-plugin-id>/ contains any other subdirs than <current-version> and remove them. Possible location: OpenH264Provider startup.
Flags: firefox-backlog+
We have to be careful here: in the future during Firefox update we may download a new version of OpenH264, and so we may have at least one new version. I would think that this should be part of GMPInstallManager, not the addon provider.
Remark: once it's implemented, there would probably be some tests to add and/or update in toolkit/mozapps/extensions/test/xpcshell/test_openH264.js (In particular, I'm thinking about this one -> [1], once patch from bug 1045209 − see bug 1045209 comment #31 − has been checked-in). [1] https://hg.mozilla.org/mozilla-central/annotate/0aaa2d3d15cc/toolkit/mozapps/extensions/test/xpcshell/test_openh264.js#l218
Blocks: 1089867
Stephen: does your CDM uninstall fix cover all GMP plugins?
Flags: needinfo?(spohl.mozilla.bugs)
The uninstall work that has occurred so far applies to all GMPs that are *currently registered* when an update occurs. It seems like this bug is asking for a more general cleanup, including old GMPs that may have been left on disk for one reason or another (in-use during update etc.).
Flags: needinfo?(spohl.mozilla.bugs)
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.