I'd like to see better stability. My biggest issue with Firefox on Windows right now is that it hangs if I leave it open for several days. Mozilla does have a suggestion on their support site: don't do that[1]:
> Firefox hangs after using it for a long time
> Firefox may hang if left open for long periods of time. To fix the issue, restart Firefox.
So I can choose between closing all of my open tabs at the end of each workday or randomly losing them during the workday. Since having my tabs open when I start work helps me jump back in, I've settled on randomly losing my tabs.
They also suggest using their session restore feature after a hang, but with this type of crash, Firefox is never able to restore your tabs. It also doesn't record the crash report in about:crashes. Overall, not great and it has me thinking of trying Brave.
You can get Firefox to open all the tabs you last had open when it starts up, this way you can close and open Firefox whenever you want, and you'll always be right back where you started.
This doesn't save the page state, so if you were filling in a form, you'll lose that information, but it does mean that wherever you reopen Firefox, you end up pretty much exactly where you were when you closed it.
I guess you'd still need to regularly close and reopen the browser as a whole (I do that at end of the day anyway when I turn my machine off), but it may be more convenient than losing state.
Firefox has had this feature for over a decade, and it has never worked reliably. It's slightly better now, but still one time in five or ten, it starts up in a blank session or with an error page prompting you to press a button to restore state.
I lived through the days where force closing Firefox was the only way to preserve sessions. Things honestly aren't that much better. I'd take a zero percent chance of success over 80. At least then failure is known and predictable instead of just reliable enough to get you to trust it.
Very weird to hear this. I've used Firefox as my primary browser for the last 8 or so years and it has never once failed to restore my tabs on Linux, MacOS, or Windows. I'm usually cruising with about a dozen tabs on Windows and Linux, and shamefully had up to 2,400 on MacOS last year. Works great every time. Reboots, Firefox updates, OS updates, you name it.
Works for me, but i ended up disabling it because of an extremely annoying issue, not sure where it comes from:
Opening a second window with CMD+N (mac user just like the sibling) often brings up some random page from my history. This has been so annoying that I disabled the restore feature. Since then I think it hasn't happened again.
Do you use an extension to manage your tabs? I haven't experienced this on stock Firefox, but a few years ago I had Tree Style Tab installed and it would occasionally do this.
You know that this makes it only worse unless you go through all tabs manually after starting to make sure they are actually loaded when you need them?
Having to wait half a minute on every tab switch to wait for that gigantic mess of enterprise grade websites served from an ancient box on the other side of the solar system to load is not conductive towards concentrated work.
When I lose firefox (usually when power outage) I just cycle through all the tabs with ctrl+tab, by the time I get back to the first one it has reloaded (and the others do so in the background). It's not a big deal.
Thanks for the advice - hopefully it helps others. For me, it happens infrequently enough that I am unlikely to remember anything specific for the situation. I never select multiple tabs otherwise.
Jira takes 10s for certain pages to load for me on a gigabit connection with an M1 Mac. I doubt a dial-up connection could even load a Jira backlog page in under an hour.
As someone who used to have hundreds if not thousands of Tabs, Firefox is the only browser that is stable enough and has the best Tab Session restore. So my guess is that something went wrong if you have to constantly restart Firefox.
Firefox has a sessionrestore.js and also a sessionrestore.bak. ( And also sesstionrestore.bak2 if I remember correctly )[1] It is the only browser that took session restore seriously because around ~16 years ago an idiot constantly went on Mozillazine and Bugzilla to file crash report of lost sessions that could have thousands of tabs.
If your sesstionrestore crashed or get wiped, i.e you restart your browser and those tabs were not there, you could also copy and past the .bak files and rename it as .js. It wont be everything you had since the bak file may have been a few hours old. But at least you got something back.
As to crashing. In the old days it was some tabs in the background doing JS with memory leakage. But if I remember correctly Firefox now pause Tabs that is unused for long period of time. If it isn't background Tabs that is causing problem. I would suggest similar to what I wrote to Animats, make a new Firefox profile and migrate all your History, Cookies etc to the new profile and see if it improve things. This used to be a manual process but I believe recent Firefox has made this easier with Firefox Retune or Refresh ( Sorry all of this are on top of my head you will have to do some Google search for the actual name)
If I were to rate Browser stability, it would be Firefox > Chrome > Safari. On both MacOS and Windows. The same ranking for session restore function where I have lost multiple sessions on Safari over the years. And in case anyone wondering why Safari is not stable and that may not be their experience, it is that something on MacOS ( the OS itself ) sometimes triggers Safari to reload all the Tabs even if they were originally sitting idle. This create huge I/O spike and generally leads to crashing or halt for a long period of time. Other than that it is pretty much on par with others.
[1] Those file and extensions names were something on top of my head so you have to google it to double check
This might be a Windows issue rather than a Firefox issue. I have a lot of tabs open in Firefox on Linux, for days to weeks on end, with no issues. The only time I restart it is to upgrade to a new version of Firefox or after installing a system update that requires a reboot to fully take effect.
> This might be a Windows issue rather than a Firefox issue
I leave multiple tabs open for weeks+ on Windows (and android), I have never experienced any issue (except when windows decides to update - but firefox always restores itself without issue, or I can press ctrl+shift+t to reopen previous tab/session). There must be something specific to the other commenter's setup, whether it be specific addons or specific pages that are causing the crash.
It could be you are using different apps from them so they never noticed. I've noticed some web "apps" have leaks that over time can bloat out memory usage leading to swap thrashes. gmail.com for example.
It was quite visible in top or about:memory or about:processes
It's not computing or swapping. Plenty of memory and CPU time available. It's just Firefox doing its own disk I/O. I cleared history, and that didn't help.
Ah.. No idea then. Windows debugging not my thing. I do know from a discussion w/ a Windows user that loading the same app (Microsoft Teams) took over a minute to load on his windows machine on an HD (and locked up most of the machine while doing so) - I did exact same comparison on my Linux machine and MS Teams loaded with all caches flushed in < 10 seconds, almost instantly with caching. I've encountered similar with Hedgewars and Minecraft.
So maybe there's a real issue but us linux users simply aren't noticing it..
Another thought. Perhaps it is the sqlite db? Maybe a large one that somehow isn't getting vacuumed on shutdown?
I now routinely reboot my Mac once in a while after I discovered a “helper” daemon from Zoom desperately pinging its mothership one year after uninstallation.
Same for me. I discovered it was Slack that had some live leak, one time it had eaten 33GB of RAM. An auto-reload extesion did the trick to prevent it from going too far, but I'd really wish Firefox would handle it more gracefully.
Unless I say so, a normal web page shouldn't eat gigs of RAM or tons of CPU.
Given how well web pages are coded, I'm curious whether a Firefox that's browsed to 50 static pages fares. At some point the pages themselves should get some blame (and yes, they can be offloaded, but we're back to balancing responsiveness & long term resource usage, and people are complaining about the pages being reloaded after exit as a delay)
Chrome recently added a setting so you can display a tab’s memory usage when you mouse over the tab. In Firefox, you can check the memory usage of each tab in Firefox’s Task Manager (about:processes).
I can't remember ever having a Firefox crash in the last few years. Running it on one machine with Win 10 and another with Win 11. Only extension is uBlock Origin. I often will leave it open for many days.
> So I can choose between closing all of my open tabs at the end of each workday or randomly losing them during the workday. Since having my tabs open when I start work helps me jump back in, I've settled on randomly losing my tabs.
I know it's just paper over the real problem, but couldn't you restart at the end of the day rather than at the beginning?
I must add a data point to the contrary: I'm a longtime Firefox user, and ever since they switched to the new Quantum core [1], issues like hanging or crashing (especially with a lot of tabs open) have practically disappeared. Over the last few years, I've consistently had hundreds of tabs open (with up to 100 active) with no problems whatsoever (three different laptops, all running Windows).
I rarely reboot my workstation; it's often in hibernation for days or even weeks until a security update is waiting for a cycle. Despite this, my Firefox on both Windows/macOS consistently maintains my tabs, each running smoothly in their own containers without any issues.
Good chances are Firefox is not at fault here as many people run it without issues for months in a row.
Maybe you should check it for suspicious DLLs using Process Exporer or outright attach a debugger and see what the UI thread is blocked on when it stops responding.
Session manager plugins solve this in my experience. It's a little annoying that FF doesn't already have this and you have to use a plugin for it, but only a little.
> They also suggest using their session restore feature after a hang, but with this type of crash, Firefox is never able to restore your tabs. It also doesn't record the crash report in about:crashes
Also the setting you suggested doesn't work if you have multiple windows that close. It only saves one window session.
Yes but OP is saying that built-in ability doesn't work for him for whatever reason.
In my case I like to be able startup the browser without opening all the prior tabs, but then be able to selectively reopen the prior tabs by window or by individual tab. That's what session managers do.
Why would you need to have your PC you browse the web on for days? Why would you be bothered with restarting a browsers at least once every 24 hours. I also call this dubious at best, I NEVER had any stability issues with FX and I pretty much used it since day 1.
You probably one of those people who confuse tabs with bookmarks and think you should have 500 tabs open with only 4 gigs ram and having not shutting your PC or Browser down for weeks. It that causes issues I think Mozilla should have that on low priority.
I use Brave on Linux mainly because I cant justify testing my webdev stuff not con Chromium and I tend to use the same Browser for everything, its also faster.
Mozilla like so brag about speed but I think the lost objectively measured to Blink a looooong time ago. Servo was given to the Linux Foundation and is far from ready. When its ready it will probably be pretty fast.
> Firefox hangs after using it for a long time
> Firefox may hang if left open for long periods of time. To fix the issue, restart Firefox.
So I can choose between closing all of my open tabs at the end of each workday or randomly losing them during the workday. Since having my tabs open when I start work helps me jump back in, I've settled on randomly losing my tabs.
They also suggest using their session restore feature after a hang, but with this type of crash, Firefox is never able to restore your tabs. It also doesn't record the crash report in about:crashes. Overall, not great and it has me thinking of trying Brave.
1. https://support.mozilla.org/en-US/kb/firefox-hangs-or-not-re...