Open Bug 1878075 Opened 8 months ago Updated 7 months ago

Hidden text is being translated blocking translating an overlay modal

Categories

(Firefox :: Translations, defect, P3)

defect

Tracking

()

Tracking Status
firefox-esr115 --- ?
firefox122 --- ?
firefox123 --- ?
firefox124 --- affected

People

(Reporter: cpeterson, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

Attachments

(1 file)

Attached image screenshot.png

Steps to reproduce:

  1. Load https://www.comedie-francaise.fr/fr/expositions_virtuelles/bijoux-de-scene-de-la-comedie-francaise
  2. Use the "Translate this page" button in the address bar to translate from French to English.
  3. See that the "VIGIPIRATE" modal message overlay is not translated.
  4. Click the modal message's "X Fermer" button to close the modal.
  5. See that the rest of the page content is translated.

Expected result

All content on the page should be translated, including the "VIGIPIRATE" modal message.

Actual result

The "VIGIPIRATE" modal message is not translated, but the rest of page content is translated. See the attached screenshot showing the untranslated "VIGIPIRATE" modal message, even though the "Translate this page" button in the address bar shows that Firefox thinks it has translated the page to English.

I'm using Firefox 124 Nightly on Windows 11.

The page is translating, but it's not prioritizing the correct things to translate, so it takes a long time to finish. What's worse, is that we are translating non-visible items on the page. For instance:

This includes invisible content:

document.body.textContent.length
107,682

And this only includes visible content:

document.body.innerText.length
23,445

There is a lot of hidden content that is never shown to the user. We should take into account element visibility, but it may just be fixed with Bug 1820252. Let's keep this one open in case it's not. It's also a good test case for Bug 1820252.

Depends on: 1820252
Priority: -- → P3
Summary: Translate translate a site's page content but not the page's modal message overlay → Hidden text is being translated blocking translating an overlay modal

The severity field is not set for this bug.
:gregtatum, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(gtatum)
Severity: -- → S3
Flags: needinfo?(gtatum)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: