Closed Bug 1021900 Opened 10 years ago Closed 9 years ago

Preference intl.charset.default referenced but not used on fonts.xul

Categories

(Thunderbird :: Preferences, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1140720

People

(Reporter: javirid, Unassigned)

References

Details

On http://mxr.mozilla.org/comm-central/source/mail/components/preferences/fonts.xul#40 there is a reference to intl.charset.default preference but it is never used nor in the XUL neither on corresponding JS.

http://mxr.mozilla.org/comm-central/search?string=intl.charset.default
Summary: Preference intl.charset.default defined but not used on fonts.xul → Preference intl.charset.default referenced but not used on fonts.xul
This is probably due to the recent reworks of the charset menus in toolkit and resulting breakage of many charset menupopup throughout c-c. I think there was a bug for it already.
Neither fonts.xul nor fonts.js haven't used this preference ever.

http://mxr.mozilla.org/comm-central/source/mail/components/preferences/fonts.xul?rev=e4f4569d451a

http://mxr.mozilla.org/comm-central/source/mail/components/preferences/fonts.js?rev=e4f4569d451a#167

Those are the older versions available on comm-central repository. At the XUL file, it just appears at the <preference> block. At the JS file, there is no single line of code trying to access it.

What I am asking myself is why it is necessary to reference in XUL a <preference> but not using it at all :/ :\
OK, this pref doesn't seem to be used anywhere in the tree:
http://mxr.mozilla.org/comm-central/search?string=intl.charset.default&find=&findi=&filter=^[^\0]*%24&hitlimit=&tree=comm-central, only in one instance at editor.

It is also seen in the Seamonkey preferences at /suite/common/pref/pref-languages.xul without any JS usage.
Either we need to do what bug 934492 is doing for SM, or we do not need it in Thunderbird.
See Also: → 934492, 910192
Reference removed as part of bug 1140720.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.