News for hackers. Stuff that matters.
Re:Firefox Keeps Getting Faster by jetrink on Saturday December 09, 2023 @05:59PM (#38587033)
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.

1. https://support.mozilla.org/en-US/kb/firefox-hangs-or-not-re...

Re:Firefox Keeps Getting Faster by MrJohz on Saturday December 09, 2023 @06:07PM (#38587111)
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.

Re:Firefox Keeps Getting Faster by SilasX on Saturday December 09, 2023 @06:11PM (#38587149)
"Where you were", except for waiting for every page to reload.
Re:Firefox Keeps Getting Faster by abhinavk on Saturday December 09, 2023 @06:17PM (#38587202)
It only loads the page when you switch to it.
Re:Firefox Keeps Getting Faster by josefx on Saturday December 09, 2023 @08:07PM (#38587991)
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.

Re:Firefox Keeps Getting Faster by unloco on Saturday December 09, 2023 @07:24PM (#38587669)
are you on dial-up?
Re:Firefox Keeps Getting Faster by squeaky-clean on Saturday December 09, 2023 @08:39PM (#38588181)
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.
Re:Firefox Keeps Getting Faster by cycomanic on Saturday December 09, 2023 @09:52PM (#38588579)
Funny you mention Jira, so you're saying there is no information after a day that requires you to reload?
Re:Firefox Keeps Getting Faster by squeaky-clean on Sunday December 10, 2023 @10:24PM (#38597313)
Jira updates without needing to refresh.
Re:Firefox Keeps Getting Faster by PhasmaFelis on Saturday December 09, 2023 @08:46PM (#38588238)
Same, but I'm not sure if that's because there's too much data or just because Jira is slower than a dead snail.
Re:Firefox Keeps Getting Faster by eek2121 on Saturday December 09, 2023 @07:39PM (#38587793)
I have a 10gb connection and I still see that. Browsers, despite being excellently threaded, are also poorly threaded. Who knew?
Re:Firefox Keeps Getting Faster by calamari4065 on Sunday December 10, 2023 @12:06AM (#38589264)
Modern websites are simply enormous and slow.
Re:Firefox Keeps Getting Faster by SECProto on Saturday December 09, 2023 @08:42PM (#38588206)
> except for waiting for every page to reload.

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.

Re:Firefox Keeps Getting Faster by MrApathy on Saturday December 09, 2023 @10:04PM (#38588644)
Right click on a single tab > Select all tabs > Reload tabs.
Re:Firefox Keeps Getting Faster by SECProto on Saturday December 09, 2023 @10:38PM (#38588812)
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.
Re:Firefox Keeps Getting Faster by calamari4065 on Sunday December 10, 2023 @12:05AM (#38589259)
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.

Re:Firefox Keeps Getting Faster by oarfish on Sunday December 10, 2023 @12:46AM (#38589450)
Curious. I've used Firefox for many years and never experienced this problem, not on macOS at least.
Re:Firefox Keeps Getting Faster by davidgerard on Sunday December 10, 2023 @04:09AM (#38590273)
I have literally never had it fail, in years.
Re:Firefox Keeps Getting Faster by moritzwarhier on Sunday December 10, 2023 @07:34AM (#38591111)
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.

Re:Firefox Keeps Getting Faster by vulcan01 on Sunday December 10, 2023 @10:18AM (#38592063)
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.

(I now use Sidebery.)

Re:Firefox Keeps Getting Faster by moritzwarhier on Sunday December 10, 2023 @05:57PM (#38595880)
No, but thinking a bit about it, it might be I am misremembering and it was on Xubuntu before I switched to mac. Or just fixed.

Currently, the problem might be gone, I will try that out. Thanks for your answer!

Edit: I also don't have these stability issues, but I did have issues with my suspend mode on that laptop, no matter the os (win/ubuntu)

Re:Firefox Keeps Getting Faster by MikusR on Sunday December 10, 2023 @10:05AM (#38591950)
The only time it was happening for me (on Windows) was before the release of Firefox 4.
Re:Firefox Keeps Getting Faster by n8henrie on Sunday December 10, 2023 @11:01AM (#38592422)
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.
Re:Firefox Keeps Getting Faster by lostmsu on Saturday December 09, 2023 @08:35PM (#38588153)
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.

Re:Firefox Keeps Getting Faster by josephcsible on Saturday December 09, 2023 @07:30PM (#38587717)
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.
Re:Firefox Keeps Getting Faster by Animats on Saturday December 09, 2023 @07:39PM (#38587788)
It hangs on Linux, too. It's seriously annoying.

Plus, there's a delay of up to 2 minutes at launch, when Firefox reads something from disk for minutes, with minimal compute.

Bug reports on this result in denial.

Re:Firefox Keeps Getting Faster by capitainenemo on Saturday December 09, 2023 @08:19PM (#38588062)
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

Re:Firefox Keeps Getting Faster by Animats on Saturday December 09, 2023 @08:38PM (#38588170)
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.
Re:Firefox Keeps Getting Faster by capitainenemo on Saturday December 09, 2023 @08:45PM (#38588231)
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?

Maybe try testing in a clean profile...

Re:Firefox Keeps Getting Faster by ksec on Sunday December 10, 2023 @12:42AM (#38589428)
Do you happen to have a profile that is 10+ years old? Have you try starting with a new profile? ( Read my other reply )
Re:Firefox Keeps Getting Faster by LargoLasskhyfv on Monday December 11, 2023 @10:55AM (#38601674)
Have a blast and deploy https://wiki.archlinux.org/title/Profile-sync-daemon , or something similar to it, if you're not using systemd.

Edding for something more neutral: https://github.com/graysky2/profile-sync-daemon

Re:Firefox Keeps Getting Faster by SECProto on Saturday December 09, 2023 @08:40PM (#38588192)
> 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.

Re:Firefox Keeps Getting Faster by blueagle7 on Saturday December 09, 2023 @06:02PM (#38587058)
Have you tried using a session manager extension? https://addons.mozilla.org/en-US/firefox/addon/tab-session-m...
Re:Firefox Keeps Getting Faster by jetrink on Saturday December 09, 2023 @06:10PM (#38587137)
Thanks for the suggestion, that looks like a good workaround.
Re:Firefox Keeps Getting Faster by mixmastamyk on Saturday December 09, 2023 @06:17PM (#38587206)
Don’t need it, check “open previous windows and tabs" aka save-session on the first page of prefs.
Re:Firefox Keeps Getting Faster by whynotmaybe on Saturday December 09, 2023 @07:29PM (#38587704)
Leaving it open for several days?

I feel like I'm from another planet when I've been raised with the concept of "a reboot a day keeps the blue screen away".

Re:Firefox Keeps Getting Faster by SanjayMehta on Saturday December 09, 2023 @09:12PM (#38588382)
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.
Re:Firefox Keeps Getting Faster by lamontcg on Saturday December 09, 2023 @10:12PM (#38588692)
You should be doing that for security updates.
Re:Firefox Keeps Getting Faster by 2143 on Sunday December 10, 2023 @08:17AM (#38591336)
I shut down my work machine at the end of the day if it has written to the swap space; else I just close the lid.

I always shut it down on Friday evenings though.

Re:Firefox Keeps Getting Faster by IAmGraydon on Saturday December 09, 2023 @07:36PM (#38587765)
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.
Re:Firefox Keeps Getting Faster by TerrifiedMouse on Saturday December 09, 2023 @06:00PM (#38587040)
I haven’t had it hang yet but it does slow down and become laggy after a week or so for me.

You can use “Open previous Windows and tabs” to keep your tabs between restarts. It only works on the last window you have closed though.

Re:Firefox Keeps Getting Faster by magicalhippo on Saturday December 09, 2023 @06:04PM (#38587072)
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.

Re:Firefox Keeps Getting Faster by dwattttt on Saturday December 09, 2023 @06:45PM (#38587424)
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)
Re:Firefox Keeps Getting Faster by cpeterso on Saturday December 09, 2023 @08:18PM (#38588055)
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).

https://support.mozilla.org/en-US/kb/task-manager-tabs-or-ex...

Re:Firefox Keeps Getting Faster by magicalhippo on Saturday December 09, 2023 @09:43PM (#38588532)
Or use the much more detailed about:memory, that's how I discovered the live leak.
Re:Firefox Keeps Getting Faster by galangalalgol on Saturday December 09, 2023 @06:08PM (#38587118)
So wouldn't chrome have the same issue?
Re:Firefox Keeps Getting Faster by plorkyeran on Saturday December 09, 2023 @06:17PM (#38587203)
I do have similar problems with chrome and have to restart it every few days.
Re:Firefox Keeps Getting Faster by kefabean on Saturday December 09, 2023 @07:18PM (#38587620)
And Safari on MacOS. It occasionally gets into a state where it becomes unresponsive to clicking on links.
Re:Firefox Keeps Getting Faster by Zardoz84 on Saturday December 09, 2023 @06:10PM (#38587139)
I noticed a similar problem with Twitch client.
Re:Firefox Keeps Getting Faster by the8472 on Saturday December 09, 2023 @06:16PM (#38587187)
> It only works on the last window you have closed though.

Alt+F, Q exits all windows at once and also restores them the next time you launch firefox.

Re:Firefox Keeps Getting Faster by tempestn on Saturday December 09, 2023 @06:33PM (#38587327)
Or Exit under the hamburger menu, if you don't want to remember the keyboard shortcut.
Re:Firefox Keeps Getting Faster by mixmastamyk on Saturday December 09, 2023 @06:18PM (#38587218)
Ctrl+Q or Cmd+Q for Mac.
Re:Firefox Keeps Getting Faster by simcop2387 on Saturday December 09, 2023 @06:03PM (#38587068)
It will work on all open windows if you close them at the same time. File->Quit, ctrl+q or cmd+q are all ways to do that.
Re:Firefox Keeps Getting Faster by inferiorhuman on Saturday December 09, 2023 @06:04PM (#38587075)
Yeah it does the same for me (macos) after a few days. Open previous windows and tabs should restore all windows though (at least it does for me).
Re:Firefox Keeps Getting Faster by RamRodification on Saturday December 09, 2023 @07:31PM (#38587727)
I'd be surprised if this is not caused by an extension. Have you tried disabling all of them, or one at a time until you've ruled them all out?
Re:Firefox Keeps Getting Faster by tux3 on Saturday December 09, 2023 @06:02PM (#38587057)
Do you have any weird plugins or addons by any chance (maybe even antimalware or other malware that you might not have installed explicitly)?

It's strange that it wouldn't report this as a crash. They're normally pretty good at telemetry (sometimes to a fault..)

Re:Firefox Keeps Getting Faster by jetrink on Saturday December 09, 2023 @06:06PM (#38587102)
I only have Bitwarden, uBlock Origin, RES and Vue Devtools installed right now.
Re:Firefox Keeps Getting Faster by SkyMarshal on Saturday December 09, 2023 @06:08PM (#38587115)
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.
Re:Firefox Keeps Getting Faster by davidgerard on Saturday December 09, 2023 @06:56PM (#38587505)
Go to Settings. The very first thing I see is:

General

Startup

[X] Open previous windows and tabs

Re:Firefox Keeps Getting Faster by SkyMarshal on Saturday December 09, 2023 @07:34PM (#38587749)
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.

Re:Firefox Keeps Getting Faster by addandsubtract on Saturday December 09, 2023 @07:13PM (#38587598)
Also, you can go to History > Restore last open tabs
Re:Firefox Keeps Getting Faster by squeaky-clean on Saturday December 09, 2023 @08:44PM (#38588223)
From their comment:

> 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.

Re:Firefox Keeps Getting Faster by davidgerard on Sunday December 10, 2023 @04:07AM (#38590263)
> Also the setting you suggested doesn't work if you have multiple windows that close. It only saves one window session.

?? It does? I have like 20 windows on the go with multiple tabs each and it brings them all back.

There's people in this thread repeating claims that are literally not true.

Re:Firefox Keeps Getting Faster by squeaky-clean on Sunday December 10, 2023 @10:23PM (#38597308)
What OS? I just tried it against right now on Windows 10 and it only saves 1 window.
Re:Firefox Keeps Getting Faster by mixmastamyk on Saturday December 09, 2023 @06:20PM (#38587234)
It does have it.
Re:Firefox Keeps Getting Faster by JadeNB on Saturday December 09, 2023 @06:48PM (#38587454)
> 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?

Re:Firefox Keeps Getting Faster by cptskippy on Saturday December 09, 2023 @07:22PM (#38587648)
How many tabs do you have open? I use a Windows VM hosted on my server and Firefox sits open on it for weeks at a time with 20+ tabs open.

It only ever lasts 3-4 weeks because Windows has to reboot for patches at least once a month.

Re:Firefox Keeps Getting Faster by andrepd on Saturday December 09, 2023 @06:47PM (#38587444)
For what's worth, I have my Firefox open since June.
Re:Firefox Keeps Getting Faster by addandsubtract on Saturday December 09, 2023 @07:12PM (#38587594)
Don't you need to restart Firefox for it to update? Did you not update since June?
Re:Firefox Keeps Getting Faster by andrepd on Sunday December 10, 2023 @12:32PM (#38593188)
Yeah, pretty much
Re:Firefox Keeps Getting Faster by redder23 on Saturday December 09, 2023 @09:03PM (#38588327)
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.

Re:Firefox Keeps Getting Faster by cobalt60 on Saturday December 09, 2023 @10:43PM (#38588840)
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.
Re:Firefox Keeps Getting Faster by ksec on Sunday December 10, 2023 @01:18AM (#38589574)
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

Re:Firefox Keeps Getting Faster by jakubmazanec on Sunday December 10, 2023 @04:55PM (#38595468)
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).

[1] https://blog.mozilla.org/en/mozilla/introducing-firefox-quan...