Closed Bug 1428923 Opened 6 years ago Closed 6 years ago

Implement setDefaultPrefAndLock functionality required to implement several policies

Categories

(Firefox :: Enterprise Policies, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 60
Tracking Status
firefox59 --- wontfix
firefox60 --- fixed

People

(Reporter: Felipe, Assigned: Felipe)

References

Details

Attachments

(1 file)

This functionality is required to implement several of the trivial policies. We must set a new default value to a prof and lock it so that every consumer gets that value.

One non-trivial aspect of this implementation is that when using the distribution.ini customization, a reload-default-prefs notification is sent, which might end up resetting the changes done by this function.

It's likely that a sysadmin user of the new policy engine might also be using distribution.ini, so we should ensure that this conflict is handled.
Blocks: 1428944
Assignee: nobody → felipc
Status: NEW → ASSIGNED
(In reply to :Felipe Gomes (needinfo me!) from comment #0)
> One non-trivial aspect of this implementation is that when using the
> distribution.ini customization, a reload-default-prefs notification is sent,
> which might end up resetting the changes done by this function.

I've verified that a *locked* pref doesn't get reset, even with the reload-default-prefs notification. So this won't be a problem after all
Comment on attachment 8942734 [details]
Bug 1428923 - Implement setDefaultPrefAndLock helper function needed to implement several policies.

https://reviewboard.mozilla.org/r/212992/#review218926
Comment on attachment 8942734 [details]
Bug 1428923 - Implement setDefaultPrefAndLock helper function needed to implement several policies.

https://reviewboard.mozilla.org/r/212994/#review218928
Attachment #8942734 - Flags: review?(mozilla) → review+
Pushed by felipc@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bfca1cdb9218
Implement setDefaultPrefAndLock helper function needed to implement several policies. r=mkaply
https://hg.mozilla.org/mozilla-central/rev/bfca1cdb9218
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: