Closed Bug 1582856 Opened 6 years ago Closed 6 years ago

extension prefs are not reset to default properly

Categories

(WebExtensions :: General, defect, P1)

defect

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mixedpuppy, Assigned: mixedpuppy)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

https://support.mozilla.org/en-US/questions/1243033
https://twitter.com/g33klaura/status/1175047611222544389

ExtensionPreferencesManager stores the "original" pref value without differentiating default prefs from user set prefs. When all extensions are disabled or uninstalled, the "original" value is restored.

Firefox V.A: default value is 0
Extension takes control, sets value to 4, stores original value 0
Firefox V.B: changes default value to 1
Extension is uninstalled,

Expected:
pref value is reset, resulting in a value 1

Actual:
pref value is set to 0

Priority: -- → P3

Add a way to update the initialValue from any system using
the ExtensionSettingsStore. This is used to prevent storing default
pref values in the ExtensionPreferencesManager.

Assignee: nobody → mixedpuppy
Priority: P3 → P1
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c67d443836ab do not store default pref values in extension settings r=robwu
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72

Hello,

Will this fix require manual validation? If yes, please provide some steps to reproduce in order to correctly test it and also, please set the "qe-verify+" flag. Otherwise, could the "qe-verify-" flag be added? Thanks!

Flags: needinfo?(mixedpuppy)

it's covered by unit tests

Flags: needinfo?(mixedpuppy) → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: