News for hackers. Stuff that matters.
Re:Firefox 54 goes multi-process, eight years after work began by pvdebbe on Wednesday June 14, 2017 @07:49AM (#14552035)
Re:Firefox 54 goes multi-process, eight years after work began by mikeecb on Wednesday June 14, 2017 @08:25AM (#14552186)
One of the reasons the Chrome browser uses one process per tab is so that memory between web-pages is isolated. By doing this, an attacker in control of a renderer process cannot read data from another renderer process (web-page).

It seems like Firefox has made a security / memory tradeoff here since renderer processes can render multiple (4 by default) web-pages at a time.

Re:Firefox 54 goes multi-process, eight years after work began by teraflop on Wednesday June 14, 2017 @08:35AM (#14552233)
Chrome doesn't strictly follow the one-process-per-tab rule either. If you browse for a while with a bunch of tabs open, and then check Chrome's Task Manager, you'll see that it's quite common for a single process to render tabs from multiple different domains.
Re:Firefox 54 goes multi-process, eight years after work began by thnhtnhnhn on Wednesday June 14, 2017 @08:52AM (#14552329)
Correction: Firefox doesn't use n content processes which render 4 tabs each. By default, it uses 4 content processes which share the task of rendering your n tabs. (AFAIK, at creation time, each tab is assigned one of those rendering processes.)
Re:Firefox 54 goes multi-process, eight years after work began by chimeracoder on Wednesday June 14, 2017 @08:44AM (#14552274)
> One of the reasons the Chrome browser uses one process per tab

Chrome does not use a process per tab. It uses a process per domain (mostly), unless you middle click a link in which case it always shares the same process as the original tab.

Re:Firefox 54 goes multi-process, eight years after work began by bzbarsky on Thursday June 15, 2017 @03:58AM (#14558643)
> It uses a process per domain (mostly)

No, that's not quite right. What they do really is closer to proces-per-tab (with some complications around cross-site navigation) unless you have more than some number of tabs, in which case they will just have them share processes. See https://www.chromium.org/developers/design-documents/process... and note that the default is to put multiple "independent" instances of the same site in different processes, even though they're same-domain. What you're describing is the non-default "Process-per-site" model.

> unless you middle click a link in which case it always shares the same process as the original tab

I believe they changed that behavior starting with Chrome 60. See https://codereview.chromium.org/2680353005/ which talks about ctrl-click, but I would assume (watch me turn out to be wrong!) that middle-click takes the same codepath.

Re:Firefox 54 goes multi-process, eight years after work began by mikeecb on Wednesday June 14, 2017 @08:50AM (#14552316)
They've made efforts to make it more isolated though [1]. It seems like Firefox isn't going in this direction.

[1]: https://www.chromium.org/developers/design-documents/site-is...

Re:Firefox 54 goes multi-process, eight years after work began by oblio on Wednesday June 14, 2017 @08:40AM (#14552263)
Re:Firefox 54 goes multi-process, eight years after work began by TokenDiversity on Wednesday June 14, 2017 @07:55AM (#14552060)
Those wanting to quickly disable electrolysis for whatever reason- go to about:config and set browser.tabs.remote.autostart to false.

If you have an incompatible addon, you'll still not be on the multi-process train.

I don't know how to find which add-on is incompatible though (yet)

Re:Firefox 54 goes multi-process, eight years after work began by pricechild on Wednesday June 14, 2017 @08:00AM (#14552075)
Re:Firefox 54 goes multi-process, eight years after work began by Tepix on Wednesday June 14, 2017 @08:05AM (#14552097)
But is that add-on multiprocessCompatible itself? :-)
Re:Firefox 54 goes multi-process, eight years after work began by MagnumOpus on Wednesday June 14, 2017 @02:03PM (#14554645)
Install it and it will tell you!

(Spoiler: it is)

Re:Firefox 54 goes multi-process, eight years after work began by dezzeus on Wednesday June 14, 2017 @08:53AM (#14552333)
I've given it a try, but macOS's "activity monitor" reports a very high energy consumption, so to me it's a big no (being on a laptop).

I've filled a "feedback" about that within the browser UI…

Re:Firefox 54 goes multi-process, eight years after work began by cptskippy on Wednesday June 14, 2017 @08:55AM (#14552345)
That's largely true of any browser that isn't Safari on MacOS or Edge on Windows 10.
Re:Firefox 54 goes multi-process, eight years after work began by dezzeus on Wednesday June 14, 2017 @09:05AM (#14552407)
That's sadly true, but the reported values were pretty high (~45), even when in idle (~15) with a couple of tabs.

At the moment my "sweet spot" is on Opera with the "battery saver" mode.

Re:Firefox 54 goes multi-process, eight years after work began by dingaling on Wednesday June 14, 2017 @09:15AM (#14552451)
Was one of the idle tabs Google search results perchance?

There is some deep and dank JS on that page that makes FF loop constantly when 'idle' on that page, at least on Linux. I had to disable JS for google.com so that I could read search results without fan noise.

Re:Firefox 54 goes multi-process, eight years after work began by dezzeus on Wednesday June 14, 2017 @04:44PM (#14555975)
IIRC, yes. I should check again…
Re:Firefox 54 goes multi-process, eight years after work began by gjjrfcbugxbhf on Wednesday June 14, 2017 @01:51PM (#14554538)
startpage.com thank me later
Re:Firefox 54 goes multi-process, eight years after work began by RockyMcNuts on Wednesday June 14, 2017 @08:53AM (#14552335)
Now it can end battery life as we know it even faster. (On Mac it pegs CPU multiple times a day and I have to kill it. Never happens with Chrome)
Re:Firefox 54 goes multi-process, eight years after work began by nolok on Wednesday June 14, 2017 @08:08AM (#14552110)
If you could be bothered to read the article, their approach and solution to this problem is detailed the third paragraph. If you don't bother reading, please abstain from asking question that are so clearly answered ...
Re:Firefox 54 goes multi-process, eight years after work began by sctb on Wednesday June 14, 2017 @03:32PM (#14555378)
We detached this subthread from https://news.ycombinator.com/item?id=14552088 and marked it off-topic.
Re:Firefox 54 goes multi-process, eight years after work began by teh_klev on Wednesday June 14, 2017 @09:27AM (#14552504)
> If you could be bothered to read the article

Steady on there..

From: https://news.ycombinator.com/newsguidelines.html

Please don't insinuate that someone hasn't read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."

Re:Firefox 54 goes multi-process, eight years after work began by jwilk on Wednesday June 14, 2017 @08:52AM (#14552331)
From the HN guidelines:

Please don't insinuate that someone hasn't read an article.

Re:Firefox 54 goes multi-process, eight years after work began by srean on Wednesday June 14, 2017 @08:12AM (#14552134)
You caught me there. Nowadays I read the comments first before I read the actual post.
Re:Firefox 54 goes multi-process, eight years after work began by jvzr on Wednesday June 14, 2017 @08:21AM (#14552174)
And you reply as well, which may the worst offense of the two. Albeit an insignificantly small offense in the grand scheme of things.
[dead]
Re:Firefox 54 goes multi-process, eight years after work began by flohrian on Wednesday June 14, 2017 @08:37AM (#14552246)
this is called design, I suppose.
Re:Firefox 54 goes multi-process, eight years after work began by ungzd on Wednesday June 14, 2017 @09:19AM (#14552471)
> In theory, moving to multiple content processes will improve stability and performance (one bad tab won't slow down the rest of your computer)

So starting more processes makes other apps (not firefox) less slow? Are Arstechnica authors at least experienced PC users and know what is process, what is web browser? Do they use IE or Safari because it's default and it's an icon for internet? I wonder how high level of tech incompetence in all these tech press. Just mindless rewording of release notes every time.

Also, regarding that diagram: in fact, multiple Chrome tabs can be handled by single process, you can see it in Chrome's task manager.

Re:Firefox 54 goes multi-process, eight years after work began by majewsky on Wednesday June 14, 2017 @10:45AM (#14553092)
I suppose they're including the other tabs in that browser in their definition of "the rest of your computer", which seems very reasonable.
Re:Firefox 54 goes multi-process, eight years after work began by jswny on Wednesday June 14, 2017 @08:53AM (#14552337)
This sounds fantastic and I really can't wait to try it! However, does anyone else find themselves unable to switch away from Chrome due to the slickness? I find the overall design (and especially the design of the tabs) to be far more slick in Chrome than in Firefox. For me, the Firefox interface just feels dated and cluttered compared to the clean experience of Chrome. However, I am very wary of relying on Google for so many things so I'm absolutely going to give this new Firefox version a try.
Re:Firefox 54 goes multi-process, eight years after work began by FnuGk on Wednesday June 14, 2017 @09:03AM (#14552389)
I am a long time firefox user and i feel that firefox looks better than chrome. So it might just be what you are used to.

Also i am on macOS, maybe firefox doesnt look as good on your platform?

Re:Firefox 54 goes multi-process, eight years after work began by srean on Wednesday June 14, 2017 @08:03AM (#14552088)
Well, 800 tabs open is business as usual for me, wonder what it will do in this case.

Edit: I get downvoted to oblivion whenever I mention this usecase on HN. Its no different this time but so be it (given the negative karma I have ratched up, I wonder why the thread is even visible. Perhaps because many have commented on it. A new HN UI feature, I suppose).

FF is the only browser that has worked well with this rather unusual usage pattern, so am ever so thankful to Mozilla folks. I do a lot of reading and it seriously helps. For those who are feeling exceptionally trigger happy, its not that unusual an usage pattern if you ask around.

Re:Firefox 54 goes multi-process, eight years after work began by detaro on Wednesday June 14, 2017 @08:06AM (#14552103)
Not 800, but I've had e10s enabled for quite a while and it made the difference between "freezes up regularly" and "completely fine" with hundreds of tabs for me.
Re:Firefox 54 goes multi-process, eight years after work began by raimue on Wednesday June 14, 2017 @09:00AM (#14552374)
I assume you did not open these tabs in a single browsing session. For quite a while, Firefox will not load and render all tabs on session restore, but that happens once you switch to such a tab. Therefore I would guess that these 800 "inactive" tabs will not add that much overhead no matter whether e10s is enabled.
Re:Firefox 54 goes multi-process, eight years after work began by srean on Wednesday June 14, 2017 @09:05AM (#14552404)
Indeed. No, they accumulate over months. The count fluctuates of course, ~800 is approximately the steady state.

> For quite a while, Firefox will not load and render all tabs on session restore

Absolutely, and this behavior is just fantastic for my use. Not that it crashes often, sometime I deliberately kill it if I need the memory for some analysis I am running.

Re:Firefox 54 goes multi-process, eight years after work began by Tarean on Wednesday June 14, 2017 @07:35PM (#14556855)
I abuse tab groups as a sort of generational garbage collector. From time to time I open a new group as my main group. After a while of using it I move all tabs I still require from my old groups over and close them. That way the time required to clean up only scales with tabs I am still interested in.

Although starting a new tab group before going down some rabbit hole is helpful as well. Makes it way easier to close ~30 pages of documentation or whatever.

Re:Firefox 54 goes multi-process, eight years after work began by srean on Wednesday June 14, 2017 @11:16PM (#14557683)
Thanks for the metaphor, I indeed use tabs as a generational collector.
Re:Firefox 54 goes multi-process, eight years after work began by mwidell on Wednesday June 14, 2017 @08:08AM (#14552114)
Just out of curiosity, why would you want to have 800 open tabs? What is your workflow? Do you use tabs as bookmarks? How do you find open tabs?
Re:Firefox 54 goes multi-process, eight years after work began by jacquesm on Wednesday June 14, 2017 @08:55AM (#14552346)
I'm in much the same boat as srean, I do online research on some subject (new subject every week) and open tabs are my way of remembering what I still need to read and keep notes from. 100's of tabs open is really no exception, especially not for subjects with a large online footprint.

I use the tree-style tabs plug in and scrapbook to keep my sanity.

Re:Firefox 54 goes multi-process, eight years after work began by srean on Wednesday June 14, 2017 @08:15AM (#14552147)
Yeah they are like a volatile bookmarks with a traversable history and a 'this is very interesting but have to save the reading for later' todo list.

Once you bookmark a link the history-browsing-trajectory is lost. However once I visit a tab often it becomes a bookmark.

There are extensions to organize and search bookmarks.

Re:Firefox 54 goes multi-process, eight years after work began by avh02 on Wednesday June 14, 2017 @08:26AM (#14552191)
you may be a fan of tree-style tabs - used to do me well when i used to be on FF - you get a sense of how you got somewhere.

I use vivaldi now - and while i have tabs on the left - i do miss tree-style features.

Re:Firefox 54 goes multi-process, eight years after work began by proaralyst on Wednesday June 14, 2017 @08:27AM (#14552200)
How do you navigate between your tabs?
Re:Firefox 54 goes multi-process, eight years after work began by bzbarsky on Thursday June 15, 2017 @04:06AM (#14558668)
If you type something in the Firefox url bar starting with a "% " (percent, then space) the rest of the string will be treated as a search across the titles and urls of your open tabs. This is what I typically use for navigation.
Re:Firefox 54 goes multi-process, eight years after work began by rplnt on Wednesday June 14, 2017 @08:55AM (#14552348)
Firefox searches through open tabs by default when you type in the address bar.
Re:Firefox 54 goes multi-process, eight years after work began by krzyk on Wednesday June 14, 2017 @08:59AM (#14552370)
You just use omnibus to find it, for me it is a temporary bookmark, once when I did cleanup I had 1000 tabs.
Re:Firefox 54 goes multi-process, eight years after work began by abhinavk on Wednesday June 14, 2017 @08:06AM (#14552100)
Firefox has a configurable upper limit through setting dom.ipc.processCount in about:config. Firefox 55 might expose this in its preferences.
Re:Firefox 54 goes multi-process, eight years after work began by TheGrassyKnoll on Wednesday June 14, 2017 @06:19PM (#14556567)
Tab hoarder myself (got 559 on Firefox 54.0 right now). Its just laziness/skatter-braineded-ness. Cutting it down becomes a chore kinda like cleaning out your inbox.