Open Bug 1845783 Opened 2 years ago Updated 3 days ago

iframe is not translated

Categories

(Firefox :: Translations, defect, P3)

Firefox 117
Desktop
macOS
defect

Tracking

()

Tracking Status
firefox117 --- affected

People

(Reporter: epavlov, Unassigned)

References

(Blocks 3 open bugs)

Details

(Keywords: parity-safari)

Attachments

(1 file)

Example: https://yandex.ru/support/search/troubleshooting/feedback.html

See the screenshot.

This functionality works in Firefox Translations addon.

Blocks: 1845772
Severity: -- → S3
Priority: -- → P3

This functionality works in Firefox Translations addon.

Evgeny: Can you link to where this logic lives in the addon?

Flags: needinfo?(epavlov)

It's a bit spread out, but there is this flag in mediator and we do things differently depending on whether it's a main frame or not. The extension scripts are loaded in both frames and they talk to each other through the background script: here is a diagram with the full sequence. You can also see the mentions of frameId in the bgScript to send the messages to the right frame. Id 0 is used to send them to the main frame. It's quite tricky and honestly I don't remember all the details.

Flags: needinfo?(epavlov)

The work for this would be to teach our JSActor system to work through iframes.

Details for the actors are here: https://firefox-source-docs.mozilla.org/dom/ipc/jsactors.html

We'll need to add allFrames: true to: https://searchfox.org/mozilla-central/source/toolkit/modules/ActorManagerParent.sys.mjs#487

This can be tested by adding an iframe example to similar to: https://searchfox.org/mozilla-central/rev/50588a0b728b365afdd298debd35e8302efe7850/toolkit/components/translations/tests/browser/translations-tester-es.html

Duplicate of this bug: 1850988
Duplicate of this bug: 1840085

Make sure and verify this fix against any closed duplicates above.

Duplicate of this bug: 1882103

Just FYI, Safari added support for translating iframes in 17.4 (as mentioned in the "Changes to Safari" section of the release notes).

Keywords: parity-safari

Pages such as https://www.ixsoft.de/ are also not translated (the page contains <frame> elements).

Duplicate of this bug: 1945541
See Also: → 1949218
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: