Closed
Bug 86526
Opened 24 years ago
Closed 22 years ago
chatzilla stores default prefs in prefs.js
Categories
(Other Applications :: ChatZilla, defect)
Other Applications
ChatZilla
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: rginda)
Details
Attachments
(2 files)
2.62 KB,
patch
|
Details | Diff | Splinter Review | |
3.49 KB,
patch
|
rginda
:
review+
|
Details | Diff | Splinter Review |
Chatzilla shouldn't store its default prefs in prefs.js, because if the defaults
are later changed, anyone who happens to have run chatzilla before the change
will have the old defaults.
Here's what I see in my prefs.js file:
user_pref("extensions.irc.debug.tracer", false);
user_pref("extensions.irc.desc", "New Now Know How");
user_pref("extensions.irc.munger", true);
user_pref("extensions.irc.munger.smileyText", false);
user_pref("extensions.irc.nickCompleteStr", ": ");
user_pref("extensions.irc.nickname", "Jesse");
user_pref("extensions.irc.notify.aggressive", true);
user_pref("extensions.irc.stalkWords", "");
user_pref("extensions.irc.username", "chatzilla");
I think my nick is the only thing I entered.
Assignee | ||
Comment 1•24 years ago
|
||
This will go away when chatzilla finally gets a prefs panel.
Comment 2•23 years ago
|
||
Remove myself from QA of 33 open Chatzilla bugs and change to default QA
contact, since I have no way to verify these easily. Still no working Mozilla
on my primary platform and it doesn't look like it will happen anytime soon. :(
QA Contact: mozilla → samuel
Comment 3•22 years ago
|
||
Chatzilla now has a pref panel. Is it gone in the latest releases?
Comment 4•22 years ago
|
||
The pref panel is not checked in yet.
Assignee | ||
Comment 5•22 years ago
|
||
I don't know what my comment was all about, I don't see how the pref panel
blocks this bug at all.
No longer depends on: 23265
Comment 6•22 years ago
|
||
I think I know - without the pref panel you just saved the prefs on exit (or if
the user requested), but with the pref panels you can specify a default for each
pref in the panel itself, which cuases the pref to only be stored if it's not
set to the default.
I don't know off-hand if my stuff included in bug 23265 has these defaults in
them or not, but the current working version on my computer certainly does.
Comment 7•22 years ago
|
||
This is not fixed. The prefs are stored even if they are the defaults.
Comment 8•22 years ago
|
||
write prefs if they aren't default value.
It's necessary to delete prefs if they are set to default value,
but I couldn't find how to do that. client.prefBranch.clearUserPref()
doesn't work.
Comment 9•22 years ago
|
||
I tried calling clearUserPref("nickname") and that did appear to clear the pref
fine. Could you try again, with the clearUserPref enabled and see if you can get
it to work?
I'm happy to try the patch if you want.
Comment 10•22 years ago
|
||
client.prefBranch.clearUserPref() still doesn't work.
Once that function is called, client.munger.entries is cleared.
Comment 11•22 years ago
|
||
This is based on the previous patch, and is basically the same except it
catches exceptions generated when trying to clear a pref that's not there.
Updated•22 years ago
|
Attachment #125701 -
Flags: review?(rginda)
Assignee | ||
Comment 12•22 years ago
|
||
Comment on attachment 125701 [details] [diff] [review]
diff -U 6 of CVS tee
included in next xpi
Attachment #125701 -
Flags: review?(rginda) → review+
Assignee | ||
Comment 13•22 years ago
|
||
actually, isn't this going to keep the default values from showing up in the
pref panel?
Assignee | ||
Comment 14•22 years ago
|
||
marking fixed, 0.8.34 checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Core → Other Applications
You need to log in
before you can comment on or make changes to this bug.
Description
•