Skip to content

Relax rules around add-on names containing Firefox/Mozilla#24504

Open
diox wants to merge 3 commits intomozilla:masterfrom
diox:name-for-firefox
Open

Relax rules around add-on names containing Firefox/Mozilla#24504
diox wants to merge 3 commits intomozilla:masterfrom
diox:name-for-firefox

Conversation

@diox
Copy link
Member

@diox diox commented Feb 23, 2026

Previously only " for Firefox" was allowed, now the name only needs to end with "Firefox" provided that it's long enough.

Fixes mozilla/addons#15977

diox added 3 commits February 23, 2026 17:46
Previously only "<something> for Firefox" was allowed, now
the name only needs to end with "Firefox" provided that it's
long enough.
@diox diox marked this pull request as ready for review February 23, 2026 22:38
@diox diox requested a review from eviljeff February 23, 2026 22:38
Copy link
Member

@eviljeff eviljeff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how (well|badly) would this work with a RTL language string? (although the Mozilla/Firefox would still be LTR)

Comment on lines +45 to +52
symbol_count >= 1
# 'XXX for Mozilla' or 'XXX for Firefox' is allowed...
and not normalized_name.endswith(f' {symbol}')
)
or (
symbol_count >= 1
# ...'XX for Firefox' is too short though
and len(variant) < len(symbol) + 6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kind of a nit

Suggested change
symbol_count >= 1
# 'XXX for Mozilla' or 'XXX for Firefox' is allowed...
and not normalized_name.endswith(f' {symbol}')
)
or (
symbol_count >= 1
# ...'XX for Firefox' is too short though
and len(variant) < len(symbol) + 6
symbol_count == 1
and (
# 'XXX for Mozilla' or 'XXX for Firefox' is allowed...
not normalized_name.endswith(f' {symbol}')
# ...'XX for Firefox' is too short though
or len(variant) < len(symbol) + 6
)

@diox
Copy link
Member Author

diox commented Feb 26, 2026

For we have a NARC rule disallowing bidi override characters so RTL is probably messy anyway. Adblocker for Firefox can translate to مانع الإعلانات لـ Firefox in arabic according to the internets, so I guess it's fine in most of the time, but I'm sure there would be cases where it's problematic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"XXX for Firefox" is not allowed in names when translated ("pour Firefox", "fūr Firefox" etc)

2 participants