Closed Bug 1820195 Opened 2 years ago Closed 2 years ago

Integer Preferences getting converted to boolean values in preferences policy

Categories

(Firefox :: Enterprise Policies, defect, P2)

defect

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox-esr102 --- fixed
firefox112 --- fixed

People

(Reporter: mkaply, Assigned: mkaply)

Details

Attachments

(2 files)

See:

https://github.com/mozilla/policy-templates/issues/1003

With a Preferences value of

{
  "pdfjs.cursorToolOnLoad": {
    "Value": 1,
    "Status": "user"
  },
  "pdfjs.sidebarViewOnLoad": {
    "Value": 0,
    "Status": "user"
  }
}

You end up with booleans in about:config.

  1. This shouldn't happen.
  2. This shouldn't be possible because these prefs already exist as default values with ints.
Pushed by mozilla@kaply.com: https://hg.mozilla.org/integration/autoland/rev/34f61f1d8186 Special case pdfjs preferences in policy. r=hjones
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch

Comment on attachment 9321082 [details]
Bug 1820195 - Special case pdfjs preferences in policy. r?mstriemer

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Policy only fix, related to enterprise
  • User impact if declined: Some PDFjs prefs can't be set via policy
  • Fix Landed on Version: 113
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Policy only, automated test.
Attachment #9321082 - Flags: approval-mozilla-esr102?

Comment on attachment 9321082 [details]
Bug 1820195 - Special case pdfjs preferences in policy. r?mstriemer

This needs a rebased patch for ESR.

Flags: needinfo?(mozilla)
Attachment #9321082 - Flags: approval-mozilla-esr102?
Flags: needinfo?(mozilla)

Comment on attachment 9325733 [details] [diff] [review]
Patch against ESR102

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Policy only fix, related to enterprise
  • User impact if declined: Some PDFjs prefs can't be set via policy
  • Fix Landed on Version: 113
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Policy only, automated test.
Attachment #9325733 - Flags: approval-mozilla-esr102?

Comment on attachment 9325733 [details] [diff] [review]
Patch against ESR102

Approved for 102.10esr.

Attachment #9325733 - Flags: approval-mozilla-esr102? → approval-mozilla-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: