Details
Details
Diff Detail
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
- Build Status
Buildable 587403 Build 685426: arc lint + arc unit
Event Timeline
Comment Actions
......... well crap.
(Maybe this is why we should use TypeScript)
I have missed it every day I have worked on this project.
: This is a timing based issue, so it's not really testable without mocking out the timing functions. That doesn't seem reasonable here.
Comment Actions
I don't have a Twitter account anymore to verify the original report, but this doesn't seem to fix the infinite scrolling on reddit.com.
STR:
- Go to reddit.com
- Manually translate from English to Spanish.
- Wait until the page is fully translated.
- Scroll down to the bottom to load in new reddit posts.
Expected:
These new posts should be translated.
Actual:
The posts are still in English.
Comment Actions
That works for me.
- Go to reddit.com and sign in
- Turn on multiprocess browser toolbox in multiprocess mode, pick translations-engine-worker.js, open chrome://content/translations/translations-engine-worker.js
- Add logger breakpoints to line 732 (the start of the while loop) and line 771 (the end of the function) to track the progress, and optionally also at line 714 to track the requests-while-running.
- Manually translate from English to German
- Wait until the page is fully translated, i.e. wait for the line 771 log message you added at step 3
- Scroll down to the bottom and see you get the line 732 log message you added at step 3 and then eventually the line 771 one again.
I'm landing this as this fix should be valid even if it doesn't fix the Reddit case (although I believe it does).
Comment Actions
While yes, although maybe there could be a postMessage from worker that tells the queue is now empty?