Closed Bug 1147311 Opened 11 years ago Closed 11 years ago

BG__migrateUI() should migrate font.language.group to a supported value

Categories

(Firefox :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 39
Tracking Status
firefox39 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 756022 narrowed the permissible value space for the font.language.group pref which tracks the currently-chosen group in the font settings, but the patches didn't deal with font.language.group being left with an obsolete value. BG__migrateUI() in nsBrowserGlue.js should be amended to check the value of font.language.group and, if the value is "tr", "x-baltic" or "x-central-euro", set the value to "x-western".
Assignee: nobody → hsivonen
Attached patch Migrate the pref value if needed (obsolete) — Splinter Review
Attachment #8583005 - Flags: review?(mak77)
Blocks: 1147526
Comment on attachment 8583005 [details] [diff] [review] Migrate the pref value if needed Review of attachment 8583005 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/nsBrowserGlue.js @@ +1962,5 @@ > } > } > > + if (currentUIVersion < 28) { > + let group = null; some trailing spaces @@ +1967,5 @@ > + try { > + group = Services.prefs.getComplexValue("font.language.group", > + Ci.nsIPrefLocalizedString); > + } catch (ex) {} > + if (group.data == "tr" || null check group first if (group && ["tr", "x-baltic", "x-central-euro"].some(g => g == group.data)) { ... }
Attachment #8583005 - Flags: review?(mak77) → review+
Thanks. Attaching a patch with the comments addressed.
Attachment #8583005 - Attachment is obsolete: true
Attachment #8583705 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/integration/fx-team/rev/180361c8634a Rebased by hand to be migration 29 (instead of 28).
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
(In reply to Matthew N. [:MattN] from comment #4) > https://hg.mozilla.org/integration/fx-team/rev/180361c8634a Thanks. > Rebased by hand to be migration 29 (instead of 28). I was hoping this was upliftable to Aurora and Beta, since problem this patch addresses was introduced in Firefox 34. I guess fx-team taking 28 in the mean time makes uplifting too much trouble. :-( Or is there a good solution?
(In reply to Henri Sivonen (:hsivonen) from comment #6) > I was hoping this was upliftable to Aurora and Beta, since problem this > patch addresses was introduced in Firefox 34. I guess fx-team taking 28 in > the mean time makes uplifting too much trouble. :-( Or is there a good > solution? the only solution would be to move migration 28 to migration 30 (it will run again but should not be an issue) in Nightly.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: