Skip to content

fix: Treated localized extension names as literal filename text - #3832

Open
Hanabi9248 wants to merge 2 commits into
mozilla:masterfrom
Hanabi9248:codex/literal-localized-filenames
Open

Hanabi9248 wants to merge 2 commits into
mozilla:masterfrom
Hanabi9248:codex/literal-localized-filenames

Conversation

@Hanabi9248

Copy link
Copy Markdown
Contributor

A localized extension named Price $& Tracker builds as price_msg_name_tracker-1.0.zip: the replacement string expands $& back to {name}, which is then resolved against the original manifest. Likewise, Edition {version} substitutes the manifest version, and Tools/Kit fails filename validation.

Sanitize the localized name before inserting it into the filename template, using a replacement callback. This gives localized names the same filename treatment as ordinary manifest names and keeps their contents from being interpreted as template syntax.

All three regressions exercise actual package builds and fail before the change. On Windows with Node 24.19.0, the build and full test suite pass (585 passing, 3 pending), as do Prettier and ESLint for both changed files.

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.

1 participant