Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug]: Firefox homepage's initial scroll position is random on Android 8.1 device #22939

Closed
cpeterso opened this issue Dec 21, 2021 · 3 comments
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. wontfix

Comments

@cpeterso
Copy link

cpeterso commented Dec 21, 2021

Steps to reproduce

  1. Make sure Firefox is configured to open to the Firefox homepage.
  2. Cold or warm start Fenix on a device running Android 8.1.

(I can reproduce this bug in Firefox 95, Beta 96, and Nightly 97 on my Moto G5 Plus running Android 8.1.)

Expected behaviour

The homepage should either always start at the top or its previous scroll position.

Actual behaviour

  • In a cold app start, the homepage is always positioned at "Stories by topic" near the bottom of the page.
  • In a warm app start after my recent homepage scroll position was showing the "Recently visited" section or above, the homepage will start at some random position near the second row of Top Sites (with the first row of Top Sites usually off screen).
  • In a warm app start after my recent homepage scroll position was showing below the "Recently visited" section (so only showing the "Thought-provoking stories" or "Stories by topic" sections), the homepage usually restores that scroll position correctly.

@rocketsroger can reproduce this bug in an emulator running Android 8.1, but not Android 10. TBD whether this bug also affects Android 5.0-8.0 or Android 9.

This is a bug where different data sources are racing.

Similar to #22402

Device name

Moto G5 Plus

Android version

Android 8.1

Firefox release type

Firefox Nightly

Firefox version

97

Device logs

No response

Additional information

No response

┆Issue is synchronized with this Jira Task

@cpeterso cpeterso added 🐞 bug Crashes, Something isn't working, .. needs:triage Issue needs triage labels Dec 21, 2021
@rocketsroger rocketsroger self-assigned this Dec 21, 2021
@rocketsroger rocketsroger removed the needs:triage Issue needs triage label Dec 21, 2021
@rocketsroger
Copy link
Contributor

There is one case when this can also be reproduce in Android 10+. When the user first starts using Fenix, after they selected their Theme and Toolbar position, home is not scrolled to the top. I'll also fix it with this issue.

rocketsroger added a commit to rocketsroger/fenix that referenced this issue Dec 21, 2021
@rocketsroger
Copy link
Contributor

Tried different workarounds and they all causes regression in other areas. The best solution for this issue is to implement #22755.

@stale
Copy link

stale bot commented Nov 21, 2022

See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 21, 2022
@stale stale bot closed this as completed Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. wontfix
Projects
None yet
Development

No branches or pull requests

2 participants