Closed Bug 1892359 Opened 7 months ago Closed 7 months ago

Fix Translator Exception Handling

Categories

(Firefox :: Translations, defect, P3)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox125 --- unaffected
firefox126 --- wontfix
firefox127 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Description

Bug 1884901 introduced a new Translator.mjs abstraction, which works well for the happy path, but has a race condition in the event that the Translations Engine fails to be constructed that results in an unhandled promise rejection.


Steps to implement

  • Fix the code so that all promise rejections are caught gracefully.

Tests to implement

  • Test coverage is handled by 1870307 (subsequent patches in the stack) which test SelectTranslationsPanel error states.

Fixes an issue where an exception was not being
caught correctly if the Translations Engine failed
to be created for SelectTranslations.

Depends on D207603

Set release status flags based on info from the regressing bug 1884901

Attachment #9397487 - Attachment description: WIP: Bug 1892359 - Fix Translations Exception Handling → Bug 1892359 - Fix Translations Exception Handling r=#translations-reviewers!
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7854108a0b9e Fix Translations Exception Handling r=translations-reviewers,gregtatum
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch

The patch landed in nightly and beta is affected.
:nordzilla, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox126 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(enordin)

I'm marking this as wontfix because the locations where this code is used are not yet in production.

This is used by the about:translations page, which is not an "offical" page and is not included in about:about. The page has no official UX design work and only minimal testing. It is a debugging ground for translations developers.

The other place this is used is in the SelectTranslationsPanel which is still preffed off in Firefox 126.

Flags: needinfo?(enordin)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: