Closed Bug 1884901 Opened 2 years ago Closed 2 years ago

about:translations stops working until reloading the page

Categories

(Firefox :: Translations, defect)

defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: gerard-majax, Assigned: nordzilla)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Not sure exactly of the STRs, but it has happened recurrently for me recently.

STR (hopefully):

  1. Open about:translations
  2. Source language as German
  3. Target language as French
  4. Paste some german text in the input field
  5. Translation works
  6. Switch to another page, select new text
  7. Paste in input the new text

Expected:
Translation updates

Actual:
Sometime not. You need to reload.

I dont know if it matters if I select all then remove, or just select all and paste over.

There was no error visible in consoles.

(In reply to :gerard-majax from comment #0)

Thanks for reporting this!

I discovered this issue just earlier this week while working on Bug 1870316, but I hadn't had a chance to file an individual bug for this. Moreover, my patch for Bug 1870316 should fix this bug as well, but we can confirm when it lands.

The issue is that the Translator class that manages communication with the TranslationsEngine for the about:translations page is lacking logic to detect if the TranslationsEngine has closed the channel of communication with the MessagePort from the other end.

Currently, when this happens, about:translations continues to send requests over a port that has been closed.

I will assign this bug to myself so someone else doesn't pick it up in the meantime. I'm hoping to get my patch landed this week so this should be fixed soon.

Assignee: nobody → enordin
Severity: -- → S3
Attachment #9392123 - Attachment description: WIP: Bug 1884901 - Move Translator class to Translator.sys.mjs → Bug 1884901 - Move Translator class to Translator.sys.mjs r=#translations-reviewers!
Pushed by enordin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/388f3f942998 Move Translator class to Translator.sys.mjs r=translations-reviewers,gregtatum
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
QA Whiteboard: [qa-126b-p2]
Regressions: 1892359
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: