Generate StaticPrefList.h
Categories
(Core :: Preferences: Backend, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(4 files)
Generating StaticPrefList.h
will help with some other things, like:
- splitting it into pieces to reduce recompilations (bug 1563139);
- improving Rust access to prefs (bug 1563555);
- making it harder to mess up static prefs (previously attempted in bug 1563146)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Minor things to ease the transition to StaticPrefList.yaml.
-
Rename apz_touch_drag_enabled() to the correct apz_drag_touch_enabled().
-
Change some trailing C-style comments to C++-style comments. This makes life
easier for the script I wrote to convert StaticPrefList.h to
StaticPrefList.yaml, which will be used for the next patch. -
Avoid comments on #define lines, because they aren't handled in the YAML
input. -
Convert a multi-line
#if
condition to a single line, because
Preprocessor.py doesn't handle multi-line conditions. -
Remove one unnecessary
#undef PREF_VALUE
directive. -
Move intl.charset.detector.iso2022jp.allowed to the correct section, so the
YAML processing script won't complain. -
Change an
int
pref toint32_t
, again so the YAML processing script won't
complain.
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D37526
Assignee | ||
Comment 4•5 years ago
|
||
glandium: In case it's not clear, the order of these patches is "Tweak...", Generate...", "Remove...", but Phabricator isn't showing that because I originally pushed just the "Generate..." patch.
Also note that the "Generate..." patch has a couple of njn:
comments reordering things in StaticPrefList.h. Once bug 1565110 lands they will go away.
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Also note that the "Generate..." patch has a couple of
njn:
comments reordering things in StaticPrefList.h. Once bug 1565110 lands they will go away.
Bug 1565110 landed, and I have updated the loaded patches accordingly.
Assignee | ||
Updated•5 years ago
|
Comment 9•5 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/63d7dc4650c3
https://hg.mozilla.org/mozilla-central/rev/3d0e35ab6850
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Description
•