Closed Bug 1814103 Opened 2 years ago Closed 2 years ago

about:translations should throttle or debounce the translations

Categories

(Firefox :: Translations, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: gregtatum, Assigned: gregtatum)

References

Details

Attachments

(1 file)

Right now every keystroke is sent in for translation, it would be more reasonable to debounce or throttle the keyboard events. Also, the translations can pile up, and there is no way to cancel them. They are all naively sent in at once. It might make sense to handle this here as well.

Slow translations could be simulated by artificially putting in a setTimeout to simulate a sluggish machine. Right now on my machine the translations are pretty much instantaneous.

Depends on D168566

Assignee: nobody → gtatum
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: