Closed Bug 1773096 Opened 3 years ago Closed 19 days ago

Migrate browser.menu.showCharacterEncoding functionality away from nsIPrefLocalizedString

Categories

(Core :: Internationalization: Localization, task)

task

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- fixed

People

(Reporter: tjr, Assigned: eemeli)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

This pref hasn't changed in a decade and it's unclear to me under what circumstances it changes...

This pref controls whether or not the Repair Text Encoding button will be displayed by default. It's an important option for some locales but almost irrelevant to others, which is why this judgement is left to localizers.

So the functionality is necessary, but it'd be nice to move away from nsIPrefLocalizedString.

Blocks: 1408580
Summary: Is `browser.menu.showCharacterEncoding` still relevant as a pref? → Migrate browser.menu.showCharacterEncoding functionality away from nsIPrefLocalizedString
See Also: → 1975815
Assignee: nobody → earo
Status: NEW → ASSIGNED
Blocks: 1992440

Continuing here a conversation with :hsivonen that started on Phabricator.

The only place where we use browser.menu.showCharacterEncoding any more is here, migration code added in bug 1354117 and only relevant for users migrating onwards from Firefox 56 or earlier.

Henri also noted that bug 1702914 is tracking some of the follow-up work here, which (if it ever advances) would add the "Repair Text Encoding" action unconditionally to the "More Tools" hamburger submenu.

I'm going to update the patch to simply remove the pref as obsolete.

See Also: → 1354117, 1702914
Attachment #9518063 - Attachment description: Bug 1773096 - Use Services.locale.showCharacterEncodingMenu. r?glandium! → Bug 1773096 - Remove browser.menu.showCharacterEncoding pref as unused. r?glandium!
Pushed by earo@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8c2dca895b8a https://hg.mozilla.org/integration/autoland/rev/b4ad03056a5f Remove browser.menu.showCharacterEncoding pref as unused. r=glandium,jdescottes,firefox-desktop-core-reviewers ,Gijs
Status: ASSIGNED → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
QA Whiteboard: [qa-triage-done-c147/b146]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: