[Bug] Fenix reloads every page after being backgrounded
Steps to reproduce
Restart phone so plenty of free memory Close all Fenix tabs Open arstechnica.com in Tab 1 Open mozilla.org in Tab 2 (mozilla.org page is visible) put Fenix into background using Android home button bring Fenix to foreground by tapping its icon (mozilla.org page is visible) switch to arstechnica.com tab by tapping tab counter & arstechnica tab blank screen, arstechnica.com tab reloads which takes ~1-2 seconds ---> incorrect behavior, IMHO tabs should not need to reload when there is plenty of spare memory, they should be instantly visible
Device information
- Android device: Galaxy A40, Android 9
- Fenix version: Today's
┆Issue is synchronized with this Jira Task
I've been noticing this also.
I have the same issue. Android 10, Pixel 3 XL
cc @pocmo could this have anything to do with https://github.com/mozilla-mobile/android-components/pull/6170 ?
Moreover, it happens to me on switching between tabs also.
still having the issue, it really bugs me :-/
cc @pocmo I don't think https://github.com/mozilla-mobile/android-components/issues/5529 / https://github.com/mozilla-mobile/android-components/pull/6381 are related here since those were specifically tab collections. Is it possible we aren't restoring correctly somewhere else? And that this problem could have started with https://github.com/mozilla-mobile/android-components/pull/6170?
@sblatz adding this to AC top 10 - not sure what's causing this but seems likely something from AC, and needs some investigation.
Having the same issue on Samsung Note 10+ with plenty of memory available. The problem doesn't happen instantly when switching tabs. What I did notice is that Firefox Preview is already using over 2 GB memory although only a few tabs are open.
I see this in r-b as well. Seems like the page is getting unloaded when I'm switching between many tabs.
Experiencing the same problem on my SM-G970F with OS 10, it works fine on incognito mode.
I have the same bug with Android 7.0 Oukitel c5 firefox nightly
Have the same bug. In fact, there are similar problems when fenix being used in the foreground. When a tab is placed in the foreground for a long time, switching to another tab will cause a reload. Change 'browser.cache.memory.capacity' to -1 seems to help. But it doesn't work after being background.
same. one plus 5t
This bug is quite annoying and makes multitasking between multiple tabs impossible. Hope this will be fixed once Fenix will be promoted to stable
@psymoon Have you already looked into this? Otherwise I can help too. We landed a patch in AC that correctly restores the engine session. But I assume this is a different bug if it still reproduces in the latest Nightly.
@pocmo I haven't had the chance to look at this yet. Feel free!
We landed a patch for this in AC and it should make it into the next Nightly. I'll add the QA label.
@pocmo it does not seem fixed in the current fennec nightly :(
Same shit.. not fixed yet Version Nightly 200509 06:01 But now if you disable internet connection - firefox will be restore tabs from cache
@pocmo Fenix is still unusable for me, the patch seems to only make it restore tabs faster but it stills unload those tabs from RAM when you switch to other app.