Closed Bug 1524070 Opened 6 years ago Closed 6 years ago

Type (String, Boolean, Integer) of Value Preference is missing in about:config after landing patch from bug #1521765

Categories

(Toolkit :: Preferences, defect)

66 Branch
x86_64
Windows 7
defect
Not set
major

Tracking

()

VERIFIED WONTFIX
Tracking Status
firefox-esr60 --- unaffected
firefox65 --- unaffected
firefox66 --- unaffected
firefox67 --- wontfix

People

(Reporter: Virtual, Unassigned)

References

Details

(Keywords: nightly-community, regression)

Type of Value Preference is missing after landing patch from bug #1521765.
It's not possible anymore to distinguish Type (String, Boolean, Integer) of Value Preference

STR:

  1. Open about:config
  2. and see that it's not possible anymore to see which Type (String, Boolean, Integer) of Preference Value is using

Regression caused by:
bug #1521765

Has Regression Range: --- → yes
Has STR: --- → yes

This is by design. Use Services.prefs.getPrefType(prefName) in the console or look up the default if you need this.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX

I opened Web Console and pasted "Services.prefs.getPrefType(dom.ipc.processCount)"
and this is what I got:

Services.prefs.getPrefType(dom.ipc.processCount)
ReferenceError: dom is not defineddebugger eval code:1:1
<anonymous> debugger eval code:1

or am I doing it wrong?

Status: RESOLVED → VERIFIED
Flags: needinfo?(paolo.mozmail)

You need double quotes around the string value, like:

Services.prefs.getPrefType("dom.ipc.processCount")

You can look up the constant names here:

https://searchfox.org/mozilla-central/rev/662de518b1686c4769320d6b8825ce4864c4eda0/modules/libpref/nsIPrefBranch.idl#39-42

Flags: needinfo?(paolo.mozmail)
You need to log in before you can comment on or make changes to this bug.