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)
Tracking
()
RESOLVED
FIXED
Firefox 39
| Tracking | Status | |
|---|---|---|
| firefox39 | --- | fixed |
People
(Reporter: hsivonen, Assigned: hsivonen)
References
Details
Attachments
(1 file, 1 obsolete file)
|
2.39 KB,
patch
|
hsivonen
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•11 years ago
|
Assignee: nobody → hsivonen
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8583005 -
Flags: review?(mak77)
Comment 2•11 years ago
|
||
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+
| Assignee | ||
Comment 3•11 years ago
|
||
Thanks. Attaching a patch with the comments addressed.
Attachment #8583005 -
Attachment is obsolete: true
Attachment #8583705 -
Flags: review+
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 4•11 years ago
|
||
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]
Comment 5•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
| Assignee | ||
Comment 6•11 years ago
|
||
(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?
Comment 7•11 years ago
|
||
(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.
Description
•