[meta] Remove ALL references of blacklist/whitelist within Gecko
Categories
(Firefox :: General, defect, P3)
Tracking
()
People
(Reporter: jkt, Unassigned)
References
(Depends on 5 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.
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Sylvestre, is there an appropriate linter that we could use to enforce this?
Comment 2•5 years ago
|
||
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.
Reporter | ||
Comment 3•5 years ago
|
||
Gijs, I remember discussing the commit hook in Austin for this; thanks for bringing it up!
I raised Bug 1642825 for the hook/lint.
Updated•5 years ago
|
Comment 4•5 years ago
•
|
||
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:
Comment 5•5 years ago
|
||
(For tree structures I would recommend we follow https://dom.spec.whatwg.org/#trees to the extent we don't do so already.)
Comment 6•5 years ago
|
||
(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.
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Thanks, Gijs. I've filed bug 1643142 and would appreciate anyone's input over there.
Comment hidden (off-topic) |
Comment hidden (off-topic) |
Updated•5 years ago
|
Comment 10•5 years ago
|
||
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.
Comment 11•5 years ago
|
||
(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.
Comment 12•5 years ago
|
||
Thanks, Gijs. I've filed Rename filenames containing blacklist/whitelist within Gecko.
Description
•