Closed Bug 1884769 Opened 6 months ago Closed 5 months ago

Should Hide Translate Icon When in Reader View Mode

Categories

(Fenix :: Translations, defect, P2)

All
Android
defect

Tracking

(firefox126 verified)

VERIFIED FIXED
126 Branch
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.

Assignee: nobody → ohall
Severity: -- → S3
Priority: -- → P2
Whiteboard: [fxdroid][foundation]

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.

Figma here for how to display while in reader mode.

Assignee: ohall → nobody
Assignee: nobody → giorga
Attachment #9392786 - Attachment description: WIP: Bug 1884769 - Should Hide Translate Icon When in Reader View Mode. → Bug 1884769 - Should Hide Translate Icon When in Reader View Mode.
Pushed by giorga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/db90809844d2 Should Hide Translate Icon When in Reader View Mode. r=android-reviewers,ohall
Flags: qe-verify+
Flags: qe-verify+
Flags: needinfo?(giorga)
Pushed by giorga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/90ff939be339 Should Hide Translate Icon When in Reader View Mode. r=android-reviewers,ohall
Flags: qe-verify+

Backed out for causing failures on TranslationsBindingTest.kt

[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] 
Flags: needinfo?(giorga)
Flags: qe-verify+
Pushed by giorga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9d1a0dcb7da6 Should Hide Translate Icon When in Reader View Mode. r=android-reviewers,ohall,gl

I fixed the unittests.

Flags: needinfo?(giorga)
Flags: qe-verify+
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
Attached video 1884769_Trim.mp4

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.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: