iframe is not translated
Categories
(Firefox :: Translations, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox117 | --- | affected |
People
(Reporter: epavlov, Unassigned)
References
(Blocks 3 open bugs)
Details
(Keywords: parity-safari)
Attachments
(1 file)
496.69 KB,
image/png
|
Details |
Example: https://yandex.ru/support/search/troubleshooting/feedback.html
See the screenshot.
This functionality works in Firefox Translations addon.
Updated•2 years ago
|
Comment 1•2 years ago
|
||
This functionality works in Firefox Translations addon.
Evgeny: Can you link to where this logic lives in the addon?
Reporter | ||
Comment 2•2 years ago
|
||
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.
Comment 3•2 years ago
|
||
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
Comment 6•1 year ago
|
||
Make sure and verify this fix against any closed duplicates above.
Comment 8•1 year ago
|
||
Just FYI, Safari added support for translating iframes in 17.4 (as mentioned in the "Changes to Safari" section of the release notes).
Comment 9•11 months ago
|
||
Pages such as https://www.ixsoft.de/ are also not translated (the page contains <frame> elements).
Description
•