Should Hide Translate Icon When in Reader View Mode
Categories
(Firefox for Android :: Translations, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox126 | --- | verified |
People
(Reporter: olivia, Assigned: giorga)
References
Details
(Whiteboard: [fxdroid][foundation])
Attachments
(3 files)
It appears Reader View and Translations are not currently both supported at the same time based on testing with Desktop and receiving this error in Android, and with talking to other engineers.
We should hide the entry points into translations in the reader mode case. (Both toolbar and browser menu.) Desktop has browser menu greyed out and removes the toolbar entry point. Will confirm with UI/UX if we should follow an identical pattern.
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 1•1 year ago
|
||
So far, when a page is in reader mode, and I tap on the translation icon, the "There was a problem translating. Please try again." error is displayed.
Tested with a Google Pixel 6 (Android 14), on the latest Fenix Nightly 125.0a1.
Reporter | ||
Comment 2•1 year ago
|
||
Figma here for how to display while in reader mode.
Reporter | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 5•1 year ago
•
|
||
Backed out for causing detekt linter failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/2126deb2ffbfba62097d461574758dbc0c204958
Failure log -> The function onState is too long (76). The maximum length is 75. [LongMethod]
L.E
Also these failures
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
Backed out for causing failures on TranslationsBindingTest.kt
- backout: https://hg.mozilla.org/integration/autoland/rev/351595a679135f19b6f810bdc408aa3e2c58133b
- push: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&selectedTaskRun=Bic3apq2TvWr_UEB9m7-BA.0&revision=90ff939be339ccca886011f8c1551b97a07f55e6
- failure log: https://treeherder.mozilla.org/logviewer?job_id=454186120&repo=autoland&lineNumber=3194
[task 2024-04-10T15:11:20.525Z] > Task :app:compileFenixDebugUnitTestKotlin
[task 2024-04-10T15:11:41.725Z] e: file:///builds/worker/checkouts/gecko/mobile/android/fenix/app/src/test/java/org/mozilla/fenix/browser/TranslationsBindingTest.kt:243:17 Cannot find a parameter with this name: onStateUpdated
[task 2024-04-10T15:11:41.725Z] file:///builds/worker/checkouts/gecko/mobile/android/fenix/app/src/test/java/org/mozilla/fenix/browser/TranslationsBindingTest.kt:243:17: error: Cannot find a parameter with this name: onStateUpdated
[task 2024-04-10T15:11:41.725Z] e: file:///builds/worker/checkouts/gecko/mobile/android/fenix/app/src/test/java/org/mozilla/fenix/browser/TranslationsBindingTest.kt:243:34 Unresolved reference: onIconChanged
[task 2024-04-10T15:11:41.725Z] file:///builds/worker/checkouts/gecko/mobile/android/fenix/app/src/test/java/org/mozilla/fenix/browser/TranslationsBindingTest.kt:243:34: error: Unresolved reference: onIconChanged
[task 2024-04-10T15:11:41.725Z] e: file:///builds/worker/checkouts/gecko/mobile/android/fenix/app/src/test/java/org/mozilla/fenix/browser/TranslationsBindingTest.kt:244:17 No value passed for parameter 'translationsIconStateUpdated'
[task 2024-04-10T15:11:41.725Z] file:///builds/worker/checkouts/gecko/mobile/android/fenix/app/src/test/java/org/mozilla/fenix/browser/TranslationsBindingTest.kt:244:17: error: No value passed for parameter 'translationsIconStateUpdated'
[task 2024-04-10T15:11:41.725Z]
[task 2024-04-10T15:11:41.725Z] > Task :app:compileFenixDebugUnitTestKotlin FAILED
[task 2024-04-10T15:11:41.825Z]
[task 2024-04-10T15:11:41.825Z] FAILURE: Build failed with an exception.
[task 2024-04-10T15:11:41.825Z]
[task 2024-04-10T15:11:41.825Z] * What went wrong:
[task 2024-04-10T15:11:41.825Z] Execution failed for task ':app:compileFenixDebugUnitTestKotlin'.
[task 2024-04-10T15:11:41.825Z] > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
[task 2024-04-10T15:11:41.825Z] > Compilation error. See log for more details
[task 2024-04-10T15:11:41.825Z]
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
bugherder |
Comment 11•1 year ago
|
||
Verified as implemented on the latest Fenix Nightly 126.0a1 from 4/12, with the following devices:
- Xiaomi mi8 Lite (Android 10),
- Google Pixel 6 (Android 14), and
- Lenovo M10 tablet (Android 10).
The page, once in reader mode, is not displaying the translation icon in the toolbar.
However, the transition is not smooth, so I filed Bug 1891192 for this visual glitch.
Updated•1 year ago
|
Description
•