Ensure that the translate-full-page button is hidden on sites where full-page translations is restricted
Categories
(Firefox :: Translations, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: nordzilla, Assigned: nordzilla)
References
Details
Attachments
(5 files, 1 obsolete file)
Description
There are cases in which Select Translations will work but Full Page Translations will not. Such cases include documents where the DOM nodes are not mutable, such as PDFs, and we cannot translate the full page, but we can translate selected text.
Steps to implement
- Check if the current page is restricted to FullPageTranslations and hide the button if so.
Tests to implement
- Add test cases on restricted pages to ensure that the button is not visible.
Assignee | ||
Comment 1•5 months ago
|
||
Updated•5 months ago
|
Assignee | ||
Comment 2•5 months ago
|
||
Renames the TranslationsParent.isTranslationsActor function
to getFullPageTranslationsActor to be more clear about the
functionality and purpose of the actor being retrieved.
Assignee | ||
Comment 3•5 months ago
|
||
Ensures that all locations where the SelectTranslationsPanel
would attempt to retrieve the FullPageTranslations actor
are handled gracefully if the FullPageTranslations actor
cannot be retrieved.
Assignee | ||
Comment 4•5 months ago
|
||
Ensures that the translate-full-page button is hidden
from the SelectTranslationsPanel when Full Page Translations
is not available on the active page.
Assignee | ||
Comment 5•5 months ago
|
||
The existing PDF file in the Translations test suite
has no content. Now that we're testing Select Translations
with PDFs, we need one with content.
Assignee | ||
Comment 6•5 months ago
|
||
Adds test infrastructure and a test case to test the
SelectTranslationsPanel functionality when a PDF
is the current page.
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
https://hg.mozilla.org/mozilla-central/rev/ff250016a247
https://hg.mozilla.org/mozilla-central/rev/11c0eba9a87b
https://hg.mozilla.org/mozilla-central/rev/f854ec46d8a8
https://hg.mozilla.org/mozilla-central/rev/a72fc18e10be
https://hg.mozilla.org/mozilla-central/rev/85b0e38344fa
Comment 9•4 months ago
•
|
||
Tested on Windows 11, Ubuntu 22 and macOS 12, I can confirm this issue is fixed, I verified with Firefox 128.0a1.
I will verify in Firefox beta, when the feature will be enabled there.
Description
•