Closed Bug 1654098 Opened 4 years ago Closed 4 years ago

Spelling suggestions include racist epithets (CW: offensive language)

Categories

(Core :: Spelling checker, defect, P5)

defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox80 --- fixed
firefox81 --- fixed

People

(Reporter: rnewman, Assigned: Gijs)

Details

Attachments

(1 file)

It appears that Bug 366077 has regressed in the past ten years. A customer reported this to my product team, so passing it along here.

STR:

  • Using en-US, and probably en-GB etc.
  • Open a page with a text field (e.g., Bugzilla).
  • Type 'aigga'.
  • Open the spelling suggestion dialog.

Expected:

  • "taiga" is shown as the only option.

Actual (with apologies for being explicit here):

  • "nigga" is the first suggestion.

I believe from reading that old bug that the expected behavior is that offensive words are recognized (and thus not underlined) but will not be suggested.

Looking at the HunSpell dictionaries, there are a number of alternatives also present in the dictionary. A brief attempt to permute to hit others (e.g., "aigger") did not succeed, so this might be — indeed, I hope it is — an incomplete filter.

This has been reproduced in ~68 and I still see it in current Nightly, so marking as trunk.

I found this particular variant omitted in this wordlist, which I suspect flows through the mainstream browsers, so I sent a PR:

https://github.com/en-wl/wordlist/pull/288

The equivalent fix in m-c would be to put a ! at the end of

https://hg.mozilla.org/mozilla-central/file/tip/extensions/spellcheck/locales/en-US/hunspell/en-US.dic#l36834

and

https://hg.mozilla.org/mozilla-central/file/tip/extensions/spellcheck/locales/en-US/hunspell/en-US.dic#l36837

and presumably the same in the 'orig' directory:

extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/en_US-custom.dic

Severity: -- → S4
Priority: -- → P5
Flags: needinfo?(gijskruitbosch+bugs)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(gijskruitbosch+bugs)
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a5367aeaffc8
fix a few racist epithets missing 'exclude from suggestions' annotation, r=mossop
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

The patch landed in nightly and beta is affected.
:Gijs, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(gijskruitbosch+bugs)

Comment on attachment 9169172 [details]
Bug 1654098 - fix a few racist epithets missing 'exclude from suggestions' annotation, r?Mossop

Beta/Release Uplift Approval Request

  • User impact if declined: People get racist spellcheck suggestions
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Just tweaking some flags in the default en-US dictionary
  • String changes made/needed: n/a
Flags: needinfo?(gijskruitbosch+bugs)
Attachment #9169172 - Flags: approval-mozilla-beta?

Comment on attachment 9169172 [details]
Bug 1654098 - fix a few racist epithets missing 'exclude from suggestions' annotation, r?Mossop

approved for 80.0b8

Attachment #9169172 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-80b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: