Closed
Bug 170662
Opened 23 years ago
Closed 13 years ago
More comments in moz/defaults/pref/all.js (should go into profile/*.js too)
Categories
(Core :: Preferences: Backend, enhancement)
Core
Preferences: Backend
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: andrixnet, Unassigned)
References
Details
Attachments
(1 file)
8.50 KB,
text/plain
|
Details |
Request comments for each setting in prefs.js, liprefs.js.
Look at the way smb.conf is for the samba package, or squid.conf is for the
squid proxy daemon, etc.
The configuration file is well commented, each setting well explained.
Power users may want to play around with these settings files of Mozilla and
find themselves in need to dig a lot to find out the meaning of some settings,
or the range of values and possible effects for a setting.
Thus I request the following:
Mozilla should have a fillable template for these 2 files in the installation
dir. These templates should contain all settings that can exist in them, all
commented, all with a placeholder where the value goes, all well commented about
their purpose, values, range, etc.
The prefs backend should, for each change in the prefs, to read this template,
uncomment each setting that should be other then the default, set the value in
the placeholder and save it in the profile dir.
In such a way, a power user can intimately configure Mozilla from files also.
Reporter | ||
Comment 1•23 years ago
|
||
![]() |
||
Comment 2•23 years ago
|
||
That's what all.js is supposed to be for, mostly. Yes, the commenting in that
could be expanded...
![]() |
||
Comment 3•23 years ago
|
||
[mozilla install directory]/defaults/pref/all.js
reporter, how about "more comments in moz/defaults/pref/all.js"
as summary?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 4•23 years ago
|
||
Agree.
But don't forget that they should go to the profile *.js files too.
In my current installation (1.2a) I see some comments in all.js, but not in the
prefs.js and liprefs.js in the profile folder.
Summary: Make prefs.js, liprefs.js well commented → More comments in moz/defaults/pref/all.js (should go into profile/*.js too)
![]() |
||
Comment 5•23 years ago
|
||
Mozilla does not use liprefs.js. That must be a remnant from a 4.x profile...
prefs.js is a generated file... it is created from a hash table in memory...
there is now way to tie comments to the data.
Commenting the prefs in all.js will require either someone who knows all of the
prefs in mozilla (nobody@mozilla.org) or buy-in from all of the module owners
(at a minimum). Given the collection of bugs (internal and external) pertaining
to the documenting of these prefs, I don't think this is very likely either.
Reporter | ||
Comment 6•23 years ago
|
||
But isn't it possibly to take the comments from all.js too when taking
configuratoin items?
Reporter | ||
Comment 7•23 years ago
|
||
Sorry, I forgot to add: take the _existing_ comments from all.js when writing
the prefs.js.
Then all new comments added along the way will always be there in prefs.js when
needed.
Comment 8•23 years ago
|
||
that would be very difficult
also, it would increase startup time I think.
and, _why_?
![]() |
||
Comment 9•23 years ago
|
||
Comments are stripped out in the tokenizer; that's what tokenizers are for. So
no, it's not possible without major work.
I agree that there's no reason to do it if we just
1) Make all.js up-to-date
2) _publicise_ all.js
Reporter | ||
Comment 10•23 years ago
|
||
can't the tokenizer just copy comment lines as is? consider it a token that does
not change.
Comment 11•23 years ago
|
||
well, AIUI preferences work like this: On startup, the js file
all.js/prefs.js/user.js etc. are _executed_. during this, of course, the
comments are stripped. while executed, the prefs are stored in memory in some
kind of data structure.
later on, on shutdown, the in-memory datastructure is written to disk.
so there is no direct relation between reading the prefs and writing them.
![]() |
||
Comment 12•22 years ago
|
||
See bug 158384. Having both would be redundant, and there is already some
progress on the other one, so I propose WONTFIXing this (or DUPing it to 158384).
OS: Windows 95 → All
Hardware: PC → All
![]() |
||
Comment 13•22 years ago
|
||
I'll believe it when I see it. Marking dep; if that ever gets fixed, this can
probably be resolved.
Depends on: 158384
Comment 14•21 years ago
|
||
Wrong dependency. bug 158384 is about generic prefs docs (what are prefs, where
they are stored etc). The bug to explain what prefs do what is bug 178685.
There's http://preferential.mozdev.org btw
Myself, I don't think the comments should be in all.js (is it read on startup?),
a link to online documentation is be enough.
Updated•16 years ago
|
Assignee: bnesse → nobody
QA Contact: rvelasco → preferences-backend
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•