Open Bug 1581689 Opened 5 years ago Updated 3 years ago

An extension with an experimental api will not clean up in safe mode

Categories

(WebExtensions :: General, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: mixedpuppy, Unassigned)

References

(Blocks 1 open bug)

Details

Similar to bug 1578513, the issue here is that we cannot access the experimental api without loading the extension. If the experimental api uses ExtensionPreferencesManager the settings will be left in place and any changed prefs are not reset.

My thought on this is that we store the "prefNames" passed as part of addSetting along with the other data we store. This would allow the prefs to be reset without loading the extension.

As documented here:
https://searchfox.org/mozilla-central/rev/7ed8e2d3d1d7a1464ba42763a33fd2e60efcaedc/toolkit/components/extensions/docs/lifecycle.rst#53-58

experimental APIs cannot correctly handled lifecycle events -- APIs that need to do so need to be in-tree.

But we can clean up preferences with a minor change. Our line extensions and normandy experiments are doing this.

Priority: -- → P2
Severity: normal → S4
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.