Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Without per-process tabs (or similar) Firefox will start to lag more and more behind modern browsers and at some point the deficit will become insurmountable. (I realize the difficulty of achvieving this, but as a practical matter, it must happen, otherwise...)

Why? Setting aside that, as the sibling comment points out, Electrolysis is on the roadmap, why? I use Firefox every day with dozens to hundreds of tabs in 1-2 windows and the fact it's not process-per-tab has never bothered me or even been something I noticed. Sure, it's nice to have theoretically; if the browser crashed all the time then sure, I'd like to have just one tab go away instead of session-restoring the whole thing, but that's a minor convenience, and according to about:crashes, it's only happen about two dozen times in two years anyway. On the other hand, it's nice that, despite having 32 tabs open right now, Firefox is only using 210MB of memory.

There are advantages (stability, sandboxing) and disadvantages (memory usage) to the process-per-tab model. I think there's a fair argument that Mozilla should implement it in Firefox, but I don't understand in what sense Firefox would be lagging behind other browsers if they didn't implement it. The Ideal Browser does not necessarily require process-per-tab nor is there some Ideal Browser all the browsers are converging to that Firefox is further behind on.



It's not the "process-per-tab" thing per se that's important. It's just that (as I believe I mentioned in my OP) Firefox starts to just constantly consume non-trivial amounts of CPU after some amount of time[1]. Not sure why it does this, but process-per-tab would at least mitigate the problem by offloading the whole "free resources" problem to the OS (which must be able to do these things reliably).

(I have oodles of memory and CPU, so it's not just a lack-of-resources problem.)

[1] EDIT: I'm talking about something like 30-50% of a single CPU. In extreme cases it would use 100% of one CPU, but those are admittedly outliers.


While it would be nice for Firefox to have something in-place like per-process tabs that could mitigate the problem, I think what really needs to happen in this case is that they fix the underlying issue - which, true enough, might be a while; it doesn't happen for me, even though I leave Firefox open for about a month at a time (rebooting on patch Tuesday), so I assume it isn't easily reproducible and therefore might go some time without being fixed. Even if you had per-process tabs, I'd expect that one tab would still be using 30-50% of the CPU and thus be a major nuisance, even though it might make the rest of the browser more usable.


It's completely trivial to write a "consumes-100%-CPU" JS script. I'm sure people usually don't do it intentionally, but I happened to encounter two such scripts on two separate domains today[1]. The surprising thing is Firefox managed to kill the first one, but not the second one -- after being completely unresponsive for 30s, mind you. It just hung when I pressed the "Stop script" (or whatever the button was labeled). Had to kill the whole FF process and restart it, being quick to close the two tabs that were causing trouble.

This is absurd. Apart from anything else FF needs to be better at protecting its users, and that includes separate-process-per-tab. (Ideally, it should be sandboxes, but honestly I'd settle for "separate processes" at this point in time.)

[1] One of them was http://www.xojane.com/




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: