1. Open any website
  2. Switch to another app and do literally anything
  3. Go back to Firefox
  4. Tab reloads for ~5s and wipes all form data

Poco F3 6GB
MIUI 14.0.9
Fennec 121.1
Battery saver: No restrictions
“media.aboutwebrtc.auto_refresh” - False

I doubt ram is an issue as there is always at least 1.7GB free. This bug has been occuring or a long time. 3 years old reddit post about it

Can I fix it myself or should I wait for it to get patched? I dont know if this is appropriate place to post this, but I cant use github

11 points

IIRC MIUI has for quite a while been tuned very aggressively in terms of memory management. That is to say, it’s probably not the browser but the underlying OS that is pruning processes to keep memory free when it really doesn’t need to.

permalink
report
reply
2 points

This ended up becoming a big issue with my OP7Pro where it would very aggressively kill apps causing them to constantly need to reload which would cost a lot of battery. My Pixel 7 does none of that and Firefox works great.

permalink
report
parent
reply
11 points

It might actually be an issue with the OEMs version of Android and it’s RAM management.

Not sure if there’s a way to adjust it, but you could try using LineageOS?

permalink
report
reply
7 points

I do not experience this on a Pixel 6a running stock android 14

permalink
report
parent
reply
3 points

Indeed, I do not experience it on my Samsung S22 Ultra, and I remember reading some article about how certain OEMs will change how Android manages RAM to try and improve the “experience” which results in weird behavior such as this.

permalink
report
parent
reply
4 points

There is an event when the app is not in focus and they can save their data to avoid it being deleted or the webpage reloaded. Like a snapshot of the page.

permalink
report
parent
reply
3 points

I also experience this on LOS, but on an FP3 so RAM could be an issue on my end.

permalink
report
parent
reply

Do you have the same issue after rebooting your device?

Android’s memory management may be struggling with a lot of cached resources in RAM that are being used frequently, besides Fennec. (Cached resources’ memory space may show up as “available”, but in reality this space is in use - run cat /proc/meminfo in a command line on your Android to see how much RAM is “free”)

When this happens, Android pretty much sends memory warnings to apps as soon as they are moved to the background, forcing them to save the bare minimum data needed to resume, before they are killed by the runtime. Fennec in this case is just saving your active tabs, but not the form data within. This behavior cannot be changed

Only fix in this scenario is to reboot your device AFAIK

permalink
report
reply
3 points

I had some issue with miui. There is nothing we can do.

permalink
report
reply
2 points

As far as I know it’s an issue with Firefox, always been like this.

Unfortunately your best bet is using a different browser on android.

permalink
report
reply

Firefox

!firefox@lemmy.ml

Create post

A place to discuss the news and latest developments on the open-source browser Firefox

Community stats

  • 1.8K

    Monthly active users

  • 887

    Posts

  • 17K

    Comments

Community moderators