In StaticPrefs, uint32_t cannot have a mirror type of 'never'
Categories
(Core :: Preferences: Backend, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: tjr, Assigned: n.nethercote)
Details
Attachments
(1 file)
I don't know if this is intentional (and missing documentation on why) or a bug.
| Assignee | ||
Comment 1•6 years ago
|
||
Definitely sounds like a bug. I'll take a look today.
| Assignee | ||
Comment 2•6 years ago
|
||
I can't reproduce the problem. I just added this entry to StaticPrefList.yaml:
- name: aaa.bbb.ccc
type: uint32_t
value: 123
mirror: never
and it worked fine. And I can't see anything in generate_static_pref_list.yaml that would cause uint32_t to be treated differently to other types.
(Actually, my attempt didn't work at first because I mistyped uint32_t as uint32. Might you have done the same thing?)
| Reporter | ||
Comment 3•6 years ago
|
||
# Dynamically tune the resolution of the timer reduction for both of the two above prefs
- name: privacy.resistFingerprinting.reduceTimerPrecision.microseconds
type: uint32_t
value: 1000
mirror: never
0:08.00 /home/tom/Documents/moz/mozilla-unified-2/obj-x86_64-pc-linux-gnu/dist/include/mozilla/StaticPrefList.h:5619:1: error: use of undeclared identifier 'SetPref_uint32_t'; did you mean 'SetPref_int32_t'?
0:08.00 PREF("privacy.resistFingerprinting.reduceTimerPrecision.microseconds", uint32_t, 1000)
| Assignee | ||
Comment 4•6 years ago
|
||
Ah, I didn't wait long enough... my build eventually failed too. The fix should be straightforward.
| Assignee | ||
Comment 5•6 years ago
|
||
Turns out it's unrelated to bug 1564724. The problem would have occurred if a non-mirrored uint32_t pref was added before the YAML file was introduced.
| Assignee | ||
Comment 6•6 years ago
|
||
There was a missing setter function for this combination, which hasn't been
used before.
Comment 8•6 years ago
|
||
| bugherder | ||
Description
•