Skip to content

Conversation

@eemeli
Copy link
Member

@eemeli eemeli commented Nov 26, 2025

This is effectively a prerequisite for #3802, as it despecializes our handling of webext strings. It follows closely the patterns used in #3790, expanding them to apply to webext in addition to Android strings.

Some additional validation is added, allowing us to catch typos in webext placeholders the same way as we do for Android. The editor highlighting of webext messages is also improved.

@eemeli eemeli requested a review from mathjazz November 26, 2025 12:44
@codecov-commenter
Copy link

codecov-commenter commented Nov 26, 2025

Codecov Report

❌ Patch coverage is 63.03502% with 95 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.71%. Comparing base (3111af4) to head (d6f5e93).

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@mathjazz mathjazz left a comment

Choose a reason for hiding this comment

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

original = "Source string"
translation = "Translation with a $1"
entity = mock_entity("webext", string=original)
# This should probably also be caught
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the reason it is not?

Copy link
Member Author

Choose a reason for hiding this comment

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

We have no strings using indexed rather than named variables in production, and this will get refactored with the upcoming wider changes to validation/linting, so adding the complexity needed for this isn't worthwhile atm.

@mathjazz mathjazz changed the base branch from main to dev November 26, 2025 17:44
@mathjazz mathjazz changed the base branch from dev to main November 26, 2025 17:50
Copy link
Collaborator

@mathjazz mathjazz left a comment

Choose a reason for hiding this comment

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

Since we haven't discovered any issues and have limited capacity to test, let's merge this and unblock #3855.

@mathjazz mathjazz merged commit 737a932 into mozilla:main Dec 9, 2025
9 checks passed
@eemeli eemeli deleted the mf2-webext branch December 9, 2025 08:03
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.

3 participants