Skip to content

Consider changing whitelist and blacklist usage for allowlist and denylist #1455

@fjgarlin

Description

@fjgarlin

The words blacklist and whitelist could be replaced for more inclusive ones, like allowlist or denylist (useful reading).

Some frameworks and libraries have already implemented this, for example:

Chromedriver followed a soft deprecation approach, adding the new options, and showing those in the documentation. The old names are no longer documented but still accepted in the code, so as not to break existing integrations.

This could be implemented in two phases:

  1. Add the new options, document them in favor of the old ones and map the old option to the new ones in the code. Optionally trigger a deprecation message somehow.
  2. Remove the old options permanently. I guess this can only happen on a big version jump, so backwards compatibility is not broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions