Closed Bug 1872267 Opened 6 months ago Closed 6 months ago

Setting a integer user preference via GPO with a value of 0 makes it a boolean

Categories

(Firefox :: Enterprise Policies, defect, P3)

defect

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox-esr115 --- fixed
firefox123 --- fixed

People

(Reporter: mkaply, Assigned: mkaply)

Details

Attachments

(2 files)

If you set a Preference policy like this:

"print.printer_VersaLink_C505.print_paper_size_unit": {
"Value": 0,
"Status": "user"
}

It ends up as false in about:config

We should keep the 0 int value.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED

This was done on purpose in bug 1668374.

I need to find a better way.

Summary: Setting a boolean user preference via GPO makes it a boolean → Setting a integer user preference via GPO with a value of 0 makes it a boolean

I think the best thing to do here is add an optional type on Preferences.

This is such an edge case, it's not worth overrotating

Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/9d47e26b23ab
Allow setting an explicit preference type in policy. r=kcochrane
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Attachment #9377024 - Flags: approval-mozilla-esr115?

Uplift Approval Request

  • Risk associated with taking this patch: Low
  • String changes made/needed: None
  • User impact if declined: Can't set certain pref policies correctly (parity with 123)
  • Explanation of risk level: Policy only
  • Code covered by automated testing: yes
  • Is Android affected?: no
  • Fix verified in Nightly: yes
  • Steps to reproduce for manual QE testing: N/A
  • Needs manual QE test: no
Attachment #9377024 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: