[HNT] Screen flickers / flashes white when swiping between Homepage and web tabs via address bar gesture
Categories
(Firefox for Android :: Homepage, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | affected |
People
(Reporter: apetridean, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid] [group5])
Attachments
(1 file)
|
4.74 MB,
video/mp4
|
Details |
Steps to reproduce
- Launch Fenix with "Homepage as a New Tab" enabled.
- Open at least three web content tabs (e.g., https://www.google.com and https://www.wikipedia.org).
- Open a Homepage tab (about:home) alongside the content tabs.
- Perform a horizontal swipe gesture across the address bar / toolbar to switch between the tabs repeatedly.
- Observe the visual transition as the view slides between tabs.
Expected behavior
The transition animation between tabs during a toolbar swipe is smooth, maintaining frame stability without flickering or blank white frames
Actual behavior
A brief screen flash/flicker occurs as the Homepage tab comes into view or exits view during the toolbar swipe animation.
Device information
- Firefox version: Nightly 158.0a1 - 24.09.2026
- Android device model: Google Pixel 3 XL (Android 9), Samsung S23 Ultra (Android 14)
Any additional information?
The glitch is specifically noticeable when transitioning to/from about:home tabs. Switching between two standard web pages (e.g., Google to Wikipedia) renders much smoother.
This issue is also reproducible in PB.
Comment 1•2 months ago
|
||
| ai-triage-wrong-cause frontend-triage | ||
ToolbarHorizontalGesturesHandler.kt calls selectTabUseCase(tab.id) and onTabSwitched(tab) before it starts the tabPreview.animate().alpha(0f) cross-fade its own comment says is there "to prevent flickering", and under HNT both of those cross a fragment boundary: HomeSwipeIntegration.kt navigates to browserFragment synchronously inside onTabSwitched, and in the reverse direction AboutHomeBinding.kt navigates actionGlobalHome a main-loop tick after the selection. The TabPreview being faded therefore belongs to a fragment view that is already being torn down, so the fade never renders, and nothing behind it is opaque: homepageComposeView is created with no android:background in HomeFragment.kt, its Scaffold uses containerColor = Color.Transparent at #772, and @id/container in activity_home.xml sets none either, leaving the near-white android:windowBackground (fx_mobile_surface, styles.xml) as what shows through for a frame. Web tab to web tab stays smooth because that path involves no fragment transaction.
Fix: Drive the preview fade off the destination fragment's first drawn frame rather than doOnEnd of the slide animator, and give homepageComposeView and @id/container an opaque background so an undrawn frame cannot fall through to the window background.
Note that I triaged from the steps to reproduce and the code; I did not view the attached screen recording.
Suggested severity: S3. A single-frame cosmetic flash during an animation that still completes the tab switch correctly, on a feature currently defaulted on only for Nightly and developer channels.
If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-wrong-file, ai-triage-wrong-cause, ai-triage-hallucination, ai-triage-out-of-scope, ai-triage-wrong-fix, ai-triage-shallow-fix.
Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.
Comment 2•2 months ago
|
||
I think the reported flicker might just come from the wallpaper needing a bit of time to be shown and so this ticket would be a duplicate of bug 2023575.
Updated•2 months ago
|
Updated•2 months ago
|
Description
•