question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[$1000] Web - App crashes when selecting `Translate to "Language"` by right clicking on chrome in login screen

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open login page - right click and press on Translate to “Language”.
  2. Fill email id and press on continue.
  3. Press go back on Not email-id:`Go back.
  4. Press continue again on login screen.
  5. Press go back again.

Expected Result:

App shouldn’t crash if webpage translate enabled.

Actual Result:

App crashing randomly on user actions.

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.2.36-2 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:

https://user-images.githubusercontent.com/43996225/206266863-31e973a5-6831-40b3-bd49-0b0421758445.mov

https://user-images.githubusercontent.com/43996225/206266893-636a5e2b-466c-4348-8f79-01bc86a2f664.mp4

Expensify/Expensify Issue URL: Issue reported by: @jatinsoni Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1670389024141949

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01127b45e8eb04373b
  • Upwork Job ID: 1600592978997096448

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:22 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
eVoloshchakcommented, Dec 13, 2022

This is a bug in Chromium and it is being tracked here. There is some discussion, looks like it’s going to be fixed eventually (there was activity 11 hours ago, but this issue seems to closed)

Due to the size of the fix and the fact that it could fundamentally change how we do things in the JS, we haven’t prioritized it yet. We’ll keep this in mind since we do plan on doing some major revisions in the next year or so.

There’s a workaround, but it will make the app a little bit slower (I haven’t measured by how much)

For now I’m going to recommend React users affected by this to monkeypatch Node.prototype.insertBefore/removeChild as a practical solution: https://github.com/facebook/react/issues/11538#issuecomment-417504600 It’s going to make those websites a bit slower but to many users this would be preferable to complete breakage. I hope we can stop recommending this though.

@yevheniitsuryk’s proposal works well for me (and is universal), we’d only need to modify it so it doesn’t wrap all of the text components, only the ones that have multiple children

Both solutions are technically workarounds, but we could implement one until the bug is fixed in Chromium itself

1reaction
jatinsonijscommented, Dec 7, 2022

We can fix this by add class=“notranslate” in body tag inside web/index.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Chrome languages & translate webpages - Computer
On your computer, open Chrome. · At the top right, click More More and then · At the bottom, click Advanced. · Click...
Read more >
Make React resilient to DOM mutations from Google Translate
[$1000] Web - App crashes when selecting Translate to "Language" by right clicking on chrome in login screen Expensify/App#13403.
Read more >
How to Fix Google Chrome Translate Not Working
Expand the Advanced section to the left side of the Settings panel, and then click Languages. Next, click Language under Languages (right-side ...
Read more >
Mouse Tooltip Translator
When mouse hover on text, it shows translated tooltip in any language. # Features - hover or select (highlight) on text to translate...
Read more >
How to change language in qq app from chinese to english
If you are still here, you probably In the next window, select Language packs ... English language and then accept changes by clicking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found