old gfxPrefs moved to StaticPrefList.h should be organised by section
Categories
(Core :: Graphics, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: jya, Assigned: jya)
References
Details
Attachments
(3 files)
Following bug 1550422, gfxPrefs have been moved to StaticPrefsList.h
StaticPrefsList is organised through sections, and then by alphabetical order.
gfxPrefs was supposed to be only organised in alphabetical order, however this isn't consistent.
StaticPrefs should be sorted by sections.
Assignee | ||
Comment 1•6 years ago
|
||
:mattwoodrow, :jmuizelaar is this something you could take care of?
I'm not familiar enough with most of those prefs to organised them properly.
Comment 2•6 years ago
|
||
This comment explains the sectioning:
https://searchfox.org/mozilla-central/source/modules/libpref/init/StaticPrefList.h#15-18
It's not complicated. All the prefs that start with "apz." should be in their own section, those that start with "gfx." in another section, etc. It doesn't require insight into the meaning of individual prefs.
Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Nicholas Nethercote [:njn] from comment #2)
It's not complicated. All the prefs that start with "apz." should be in their own section, those that start with "gfx." in another section, etc. It doesn't require insight into the meaning of individual prefs.
I wish it was that simple. If you look at the current gfxPrefs, you'll see that many don't fall into any classification.
accessibility.browsewithcaret should that be merged with the existing accessibility pref or not.
like the vr pref, should they really be in dom. ?
I don't see much advantage in having dom.vr.enabled alongside dom.animations.*
and slider.snapMultiplier , a section on its own?
It is my believe that many of those prefs ought to be renamed.
All this is well beyond the scope of merging gfxPrefs and StaticPrefs and why I have created this bug.
Assignee | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
It is that simple. There is a separate section for each unique initial pref segment. If "slider.snapMultiplier" is the only pref with a "slider." initial segment, then yes, it gets its own section.
I agree that some existing prefs have bad names, but as you say that is orthogonal. There is an existing method of organisation for StaticPrefList.h file that is simple and documented. Let's use it :)
Comment 5•6 years ago
|
||
Actually renaming prefs is pretty hard, since users with existing set values will go back to the default. That's generally not ideal.
I think we should just do the StaticPrefs sectioning for now.
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
This re-organise the various sections, re-sorting preferences by alphabetical order as originally intended.
Note that not all sections were re-organised. Some like the Privacy ones use multiple prefixes. Appropriate teams should revisit those.
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
"medium_high_event_queue.enabled", is the only pref using that format. It should be renamed.
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
To make it more inline other preferences naming.
Depends on D31995
Assignee | ||
Comment 9•5 years ago
|
||
Depends on D32251
Assignee | ||
Comment 10•5 years ago
|
||
renamed it into threads.medium_high_event_queue.enabled as discussed with Nathan over IRC
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
This bug was also backed out because backing out only bug 1550422 did not apply cleanly (4 out of 59 hunks FAILED -- saving rejects to file modules/libpref/init/StaticPrefList.h.rej). See https://bugzilla.mozilla.org/show_bug.cgi?id=1550422#c52
Comment 13•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Comment 15•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e44ab2c46d50
https://hg.mozilla.org/mozilla-central/rev/26e8bca713a3
https://hg.mozilla.org/mozilla-central/rev/70f7e631e8c7
Description
•