Open Bug 1642790 (remove-blackwhitelist) Opened 4 years ago Updated 9 months ago

[meta] Remove ALL references of blacklist/whitelist within Gecko

Categories

(Firefox :: General, defect, P3)

defect

Tracking

()

People

(Reporter: jkt, Unassigned)

References

(Depends on 6 open bugs, Blocks 1 open bug)

Details

(Keywords: meta)

It's widely accepted that black and whitelist is outdated and Edge reportedly has removed it: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/b/blacklist

There are many other examples too like https://whatwg.org/style-guide#tone

There have been many attempts to follow suit in Firefox codebase and it now feels time to remove all the remainder.

This is a meta bug to find, remove and prevent all further references to this use of language.

Sylvestre, is there an appropriate linter that we could use to enforce this?

Flags: needinfo?(sledru)

We could write a new mozlint checker for this. It would require parsing all files.
Or maybe just call ripgrep {blacklist, whitelist} to make it super fast.

Anyway, short answer, we can do it.

Flags: needinfo?(sledru)
Depends on: 1642808
Depends on: 1642825
Depends on: 1642811

Gijs, I remember discussing the commit hook in Austin for this; thanks for bringing it up!
I raised Bug 1642825 for the hook/lint.

No longer depends on: 1642811, 1642825
Depends on: 1642811
Depends on: 1642825
Depends on: 1642898
Alias: remove-blackwhitelist

Thank you, Jonathan, for filing this!

Though somewhat less well-known, "grandfather" (only the verb form, referring to the grandfather clause) has its origins in racist voter suppression. Since there are a good number of uses in our codebase, could we add removing that to this bug as well? If used in a different sense (i.e., a node's grandfather in a data structure), I think that's not racially insensitive, though we might want to remove unnecessarily gendered language and change it to grandparent.

Some resources:

  1. The Racial History Of The 'Grandfather Clause'
  2. Words Matter: Why We Should Put an End to “Grandfathering”

(For tree structures I would recommend we follow https://dom.spec.whatwg.org/#trees to the extent we don't do so already.)

(In reply to Jon Bauman [:jbauman:] from comment #4)

Since there are a good number of uses in our codebase, could we add removing that to this bug as well?

Please file a separate bug, in order to keep discussions focused - unfortunately there are way more whitelist/blacklist instances and so this bug is going to be big enough on its own. You can add it to the "see also" field, or file a meta-meta bug if you think there are likely other terms whose use should be reconsidered.

Flags: needinfo?(jbauman)

Thanks, Gijs. I've filed bug 1643142 and would appreciate anyone's input over there.

Flags: needinfo?(jbauman)
Depends on: 1643174
Depends on: 1642956
Depends on: 1643926
Severity: -- → S3
Priority: -- → P3
Depends on: 1646543
Depends on: 1647787
Depends on: 1647795
Depends on: 1649499
Depends on: 1650045
Depends on: 1650155
Depends on: 1650453
Summary: [meta] Remove ALL references of black/whitelist within Gecko → [meta] Remove ALL references of blacklist/whitelist within Gecko

Where should renaming something like https://searchfox.org/mozilla-central/source/build/sanitizers/ubsan_pointer_overflow_blacklist.txt go? Separate sub-issue? I'm just not sure about the appropriate scoping there.

(In reply to Jon Bauman [:jbauman:] from comment #10)

Where should renaming something like https://searchfox.org/mozilla-central/source/build/sanitizers/ubsan_pointer_overflow_blacklist.txt go? Separate sub-issue? I'm just not sure about the appropriate scoping there.

It can be a dependency of this bug, I think? This is a metabug, so it shouldn't happen in this bug itself. I'm not 100% sure why it wouldn't want to be a dep of this bug - I'm probably missing something? If not, please feel free to file the dep.

Flags: needinfo?(jbauman)
Depends on: 1657207
Flags: needinfo?(jbauman)
Depends on: 1664247
Depends on: 1772343
Depends on: 1798727
See Also: → 1798771
Depends on: 1829425
Depends on: 1845064
You need to log in before you can comment on or make changes to this bug.