Closed Bug 108236 Opened 23 years ago Closed 23 years ago

charsetOverlay.js treats "intl.charset.detector" pref incorrectly

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: bnesse, Assigned: bnesse)

References

Details

Attachments

(1 file, 1 obsolete file)

This may, or may not, have some impact on some of the currently open charset
detector bugs.

While converting the JS files from the nsIPref to the
nsIPrefService/nsIPrefBranch interfaces, I noticed that the preference
"intl.charset.detector" was being read in as a LocalizedUnicharPref and written
out as a CharPref. This is wrong. A preference read in as LocalizedUnicharPref
should be written out as a Unichar preference.
Attached patch Proposed patch (obsolete) — Splinter Review
The proposed patch fixes the read/write issues, removes some tabs and makes all
of the whitespace consistent.
Sorry, forgot to mention... This patch is not fully tested due to being blocked
by bug 107786 (no menus).
Blocks: 106749
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
bnesse: On the other hand, I think you should own this bug.
I'll test your patch.
->bnesse
Assignee: yokoyama → bnesse
Status: ASSIGNED → NEW
I have tested this as far as I can. The functions which set the preference are
apparently never called, probably due to the wrong attribute name being returned
from the event (bug 106749). Clearing blocker status as this is not blocking 106749.
No longer blocks: 106749
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Setting 106749 as blocking this bug. I think this is what Roy really meant to do
in the first place.
Depends on: 106749
I've updated the patch because recent changes to charsetOverlay.js cause merge
conflicts with the old one. With waterson's checkin for bug 106749 in on the
trunk I have now successfully tested the patch.
Attachment #56280 - Attachment is obsolete: true
Comment on attachment 57518 [details] [diff] [review]
Patch updated for charsetOverlay.js changes.

/r=yokoyama
Thanks, Brian
Attachment #57518 - Flags: review+
Comment on attachment 57518 [details] [diff] [review]
Patch updated for charsetOverlay.js changes.

sr=alecf
Attachment #57518 - Flags: superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified from Roy's comment.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: