Open Bug 1993380 Opened 1 month ago Updated 8 hours ago

Settings for spell checking are unclear

Categories

(Firefox :: Settings UI, defect)

Firefox 145
defect

Tracking

()

ASSIGNED

People

(Reporter: nabijaczleweli, Assigned: nabijaczleweli)

Details

Attachments

(3 files)

Steps to reproduce:

Type into an input box. For the purposes of this report let's say I opened <data:text/html,<textarea>asd harbor harbour> and clicked on the textarea

Actual results:

"asd" and "harbour" are red-squiggled

Expected results:

"asd" and "harbor" are red-squiggled.

In about:preferences, Language, I have selected en-gb, then en, then en-us. Thus, I expect the dictionary match this as well.

Happens on current Nightly (145.0a1 (2025-10-08) (64-bit)) on Win32.

Does not happen on DevEd 87.0b9 (64-bit) on the same machine with the same preferences (or on Debian 128.10.1esr (64-bit) with just en-gb > en).

All browsers run in environments equivalent to LANG=en-GB.UTF-8 (i.e. this is my system locale on Win32).

Toggling "Use your operating system settings for “English (GB)” to format dates, times, numbers, and measurements." doesn't do anything either I think.

The Bugbug bot thinks this bug should belong to the 'Core::Internationalization' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Internationalization
Product: Firefox → Core

The severity field is not set for this bug.
:m_kato, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(m_kato)
Component: Internationalization → Spelling checker
Flags: needinfo?(m_kato)
Summary: With languages ranked en-gb > en > en-gb spell check still red-squiggles as-if it were spell-checking in american → With languages ranked en-gb > en > en-us spell check still red-squiggles as-if it were spell-checking in american

Sounds like a regression, could you find a regression point with mozregression? I think spellchecker code is completely cross-platform, so, you don't need to test this in multiple platforms.

Flags: needinfo?(nabijaczleweli)

I tried, and with a test procedure of [run version] -> about:preferences -> [Choose your preferred language for displaying pages: remove en-us, add en-gb at the top] -> [Check "Use your operating system settings for “English (United Kingdom)” to format dates, times, numbers, and measurements."] -> open <data:text/html,<textarea>asd harbor harbour> (or <data:text/html,<textarea lang=en-GB>asd harbor harbour>) -> click on the textbox, all versions I tested fail (asd and harbour squiggled). This includes whatever mozregression picked between release:87 and date:2025-11-03, as well as version 86 and version 5. So idk what makes my regular 87 profile behave correctly I think. Am I holding it wrong?

Flags: needinfo?(nabijaczleweli)

Thanks. I have no idea why you couldn't find a build which worked before. I guess you forgot that you changed the setting at that time.

Oh, wait, in my understanding, the preferred language setting in about:preferences is for the HTTP header to let the server know the preferred languages and it's not referred by the spellchecker. The dictionary is selected by a separated pref, spellchecker.dictionary and it's referred by the spellchecker. You can add/select current dictionary from the context menu in <input> or <textarea> ("Languages" below "Check spelling" in en-US UI). Could you check the behavior with setting it?

Flags: needinfo?(nabijaczleweli)

omg that's so confusing... 😭😭😭 yeah, RMB -> Languages -> Add Dictionaries... -> installing one of the addons from AMO worked

I can confidently say I don't think I've ever knowingly right-clicked on a text field. I hope you'll agree that the layout of the Preferences is really confusing (seeing as you got fooled by it too). The dictionary list could also just as well be under the checkbox in about:preferences I think.

Flags: needinfo?(nabijaczleweli)
Assignee: nobody → nabijaczleweli
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

The dictionary list yes (in a way so hacky it'd never pass review), any of the useful preferences no. Maybe just document how to configure this.

It's not possible to configure dictionaries through the context menu if there are no dictionaries installed, so just adding text to the existing setting is not a solution.

Attachment #9525408 - Attachment description: Bug 1993380 - Document how to configure spell-check in about:preferences r=#fluent-reviewers → Bug 1993380 - Document how to configure spell-check in about:preferences. r=#fluent-reviewers,#settings-reviewers

How about to add a UI into about:preferences near the language setting? Then, users see the separated preference visually.

uri = Services.urlFormatter.formatURLPref() which already processes
%EVERYTHING%, so both .replace()s are guaranteed no-ops

Attachment #9525408 - Attachment description: Bug 1993380 - Document how to configure spell-check in about:preferences. r=#fluent-reviewers,#settings-reviewers → Bug 1993380 - Remove dead open-coded bits of formatURLPref() from nsContextMenu.addDictionaries(). r=mconley
Attachment #9525498 - Attachment description: WIP: Bug 1993380 - Remove dead open-coded bits of formatURLPref() from nsContextMenu.addDictionaries() → Bug 1993380 - Remove dead open-coded bits of formatURLPref() from nsContextMenu.addDictionaries(). r=mconley
Attachment #9525408 - Attachment description: Bug 1993380 - Remove dead open-coded bits of formatURLPref() from nsContextMenu.addDictionaries(). r=mconley → Bug 1993380 - Document how to configure spell-check in about:preferences. r=#fluent-reviewers,#settings-reviewers

As mentioned in the diff, this requires input from UX/Content. Moving to Settings for now.

Component: Spelling checker → Settings UI
Product: Core → Firefox
Summary: With languages ranked en-gb > en > en-us spell check still red-squiggles as-if it were spell-checking in american → Settings for spell checking are unclear
Severity: -- → S4
Flags: needinfo?(jules)

Hi наб,

First off, thank you for filing this and going through the effort to supply patches.

So you find us at an interesting time in about:preferences - as you may have heard, we're in the midst of a fairly serious redesign of about:preferences. One of the things that should improve with that redesign is the spellchecking options. The screenshot I've attached shows what we have in mind.

The redesign, however, is in its early phases - the current phase that we're in is a complete refactor of about:preferences to use our reusable components, instead of the bespoke JS / XHTML / XUL mess that exists today. That phase is just starting to cook.

The metabug that this work is happening in is bug 1968037. If you see any bugs or patches related to "config-based settings", that's what we're referring to.

If you'd like to help us out with that refactor, there's a metabug specifically related to Language settings, which include spellchecking: bug 1968117.

What we'd like to avoid doing is making any non-critical changes to the old preferences mechanism, nor put any additional undue load on our content designers and localizers while we work on this transition. So for now, we thank you for your patches, but we think it'd be best to focus our energies on getting this refactor and redesign out the door as soon as we possibly can (and if you're willing and able to help, amazing!), rather than add this intermediary solution.

Thank you for that wonderful description, Mike!
наб we appreciate your patches and we hope Mike's description above will better explain our rationale going forward.

We added Jules during triage to get their opinion on how to proceed. But since Mike has already made the path forward clear, I'm going to remove them from needinfo.

Flags: needinfo?(jules)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: