lensai icon indicating copy to clipboard operation
lensai copied to clipboard

Allow WL to persist in the background

Open chesamo opened this issue 5 months ago • 8 comments

Is your feature request related to a problem? Please describe.

When I load any page in WL and switch away from it using the Android app switcher, when I return to WL the content needs to reload because the session doesn't persist. Other browsers (ex. Fennec) do not have this issue, and I can't seem to find any setting to change this behaviour.

Describe the solution you'd like

A setting to enable persistence while in the background, or at least a state freeze so WL isn't constantly reloading pages.

Describe alternatives you've considered

I dunno, a different browser? Suboptimal

Additional context

I don't have any special culling processes running and have added WL to the battery management exception list.

chesamo avatar Jun 11 '26 13:06 chesamo

The state management is pretty much up to Android, I have not noticed the behavior you described. Please take a look at: https://dontkillmyapp.com/

FaFre avatar Jun 11 '26 13:06 FaFre

@Cultsonfire I don't have that issue

Flanr4 avatar Jun 11 '26 19:06 Flanr4

@Cultsonfire I don't have that issue

hello, what android version and phone?

Cultsonfire avatar Jun 11 '26 19:06 Cultsonfire

hello, what android version and phone?

realme 9 pro+, a14

Flanr4 avatar Jun 11 '26 19:06 Flanr4

@Cultsonfire are you experiencing similar issues? Issues like that were not know to me previously.

FaFre avatar Jun 11 '26 23:06 FaFre

I don't have that issue OnePlus13 VoltageOS A16

ninosandzak avatar Jun 12 '26 03:06 ninosandzak

@Cultsonfire are you experiencing similar issues? Issues like that were not know to me previously.

yes, if it helps, this only happens to the currently active tab. The background tabs don't refresh.

Android 16 OneUI 8.0

Cultsonfire avatar Jun 12 '26 04:06 Cultsonfire

@Cultsonfire are you experiencing similar issues? Issues like that were not know to me previously.

yes, if it helps, this only happens to the currently active tab. The background tabs don't refresh.

Android 16 OneUI 8.0

The tab reloading issue is present even when not switching apps, just switch to any other tab that's far in sequence of tabs and after it fully renders, switch to previous one and it would reload. I managed to reproduce this issue using 8 tabs in total.

Cultsonfire avatar Jun 12 '26 10:06 Cultsonfire

It could be due to memory pressure that old sessions are getting discarded due to low memory. How much memory does your devices have? Also please try to kill all other apps and try to reproduce it to see if the issue still persists.

FaFre avatar Jun 14 '26 03:06 FaFre

It could be due to memory pressure that old sessions are getting discarded due to low memory. How much memory does your devices have? Also please try to kill all other apps and try to reproduce it to see if the issue still persists.

my device has 8 GB ram, I hope that's enough. I even enabled a vram of 4 GB later

Cultsonfire avatar Jun 14 '26 06:06 Cultsonfire

@Cultsonfire so it happens when you switch tabs 8 times in a row to different ones, the last one will start to reload

FaFre avatar Jun 15 '26 04:06 FaFre

@Cultsonfire so it happens when you switch tabs 8 times in a row to different ones, the last one will start to reload

no no, you got me wrong. There are 8 tabs in total. I wait for all 8 tabs to render one at a time and then when I switch to the tabs I already rendered, they refresh, although after refreshing the webpage scrolls down exactly to that point. The tabs constituted of various types of sites which are easy for rendering while some are rather difficult, my point is, the memory management suffers hard and needs improvement

Cultsonfire avatar Jun 15 '26 04:06 Cultsonfire

Well this is handled by the gecko engine and android, can you reproduce the same with fennec?

FaFre avatar Jun 15 '26 05:06 FaFre

Well this is handled by the gecko engine and android, can you reproduce the same with fennec?

as you asked, I installed Fennec Browser to test and I can't reproduce the same issue on Fennec. To be fair, I opened the same websites I did on WebLibre.

Screenshot_20260615_220851_Fennec.jpg

Cultsonfire avatar Jun 15 '26 16:06 Cultsonfire