News for hackers. Stuff that matters.
Re:Firefox 61.0 Released by ktosobcy on Tuesday June 26, 2018 @11:19AM (#17401236)
Great release. I had issues with previous releases (58-60) on MBP, where quite a lot of pages would cause high CPU usage and in turn overheating of the machine but after this upgrade the problem (at least it seems so) went away. And it also feels snappier.

And now the dark theme also applies to address bar and hamburger menu which is nice bonus.

Re:Firefox 61.0 Released by adpirz on Tuesday June 26, 2018 @11:25AM (#17401302)
If this is true, I would finally be ready to dump Chrome. I had the same issues, and I couldn't figure out what was causing it, but the app regularly ran hot. Will give this round a go.

UPDATE: So far, so good! Multiple account containers open, lots of different websites that usually would cause problems, and so far it's running fine! Also had Ghostery left installed and uninstalled that as well as it also hogged CPU time on Chrome, so that may have had an effect. All in all, think this is g'bye, Chrome.

Re:Firefox 61.0 Released by kemayo on Tuesday June 26, 2018 @12:06PM (#17401731)
Sort of tangential, but as an account-containers user, have you found a decent way to achieve making the current container "sticky", so that new tabs opened in a given window go directly to that container?

I currently use Chrome's account profiles for this, so I have a desktop where my work profile lives and a desktop where my personal profile lives, and this makes links followed from other applications Just Work so long as I'm on the right desktop for them. I could probably get used to a slightly more awkward workflow, and the history being annoyingly shared between them, but...

EDIT: ah, well, I found the relevant github issue. Looks like there's years of arguing yet to go! https://github.com/mozilla/multi-account-containers/issues/3...

Re:Firefox 61.0 Released by snthd on Tuesday June 26, 2018 @03:35PM (#17403411)
Firefox can already run multiple profiles simultaneously (like you do with chrome) http://kb.mozillazine.org/Command_line_arguments .

The problem is not having just one instance open all the links. It seems it might be possible to hack around that by writing your own url handler for your os, then dispatching to the correct instance. (https://superuser.com/questions/119014/how-to-remotely-open-...)

Re:Firefox 61.0 Released by kemayo on Tuesday June 26, 2018 @03:57PM (#17403541)
I did try that out, when I was seeing if I could stand switching after multiprocess stuff landed. It's closer to the fairly-polished Chrome experience if you use about:profiles, rather than messing around with custom command lines.

But, as you say, the problem with that is that it doesn't handle opening links correctly.

I could see if I could write a URL handler that queries the window manager to find the last Firefox window that had focus on the current desktop (probably possible, but I'm unfamiliar with that domain)... or I could view Firefox not supporting this natively as a sign that it doesn't think my use case is very important, and stick with a browser that works without jumping through hoops.

It's not that I'm averse to putting some work in, per se -- I'm now in the middle of poking at writing a Firefox add-on to see if I can fix my complaints about insufficiently sticky containers -- it's just that writing my own OS url handler is a bit too hacky for my tastes.

Re:Firefox 61.0 Released by IlGrigiore on Tuesday June 26, 2018 @03:48PM (#17403492)
I have been using the Conex extension. It opens the new tab in the same container as the currently active tab and you can enable the preference to make it so that it asks you which container you want to use before opening an external link.

https://addons.mozilla.org/en-US/firefox/addon/conex/

Re:Firefox 61.0 Released by kemayo on Tuesday June 26, 2018 @06:08PM (#17404359)
I've written my own now, which just approximates the Chrome behavior. (I looked at Conex after you linked it, and it didn't quite do what I felt was right.)

https://github.com/kemayo/firefox-sticky-containers

I'm currently seeing whether #webextensions on irc.mozilla.org feels like ripping it to shreds, but I'll put it up on AMO after that's done.

Re:Firefox 61.0 Released by kemayo on Wednesday June 27, 2018 @12:31AM (#17405767)
Re:Firefox 61.0 Released by adpirz on Tuesday June 26, 2018 @12:13PM (#17401816)
I did the same with Chrome account profiles, and I just searched for this on Firefox. The closest you get to it is ctrl/cmd + "+" (new tab button) which will open a new tab with current container.

No keyboard shortcuts to speak of.

Re:Firefox 61.0 Released by JoshMnem on Tuesday June 26, 2018 @06:07PM (#17404353)
uMatrix is a good replacement for Ghostery.

https://addons.mozilla.org/en-US/firefox/addon/umatrix/

Firefox has built-in tracking protection that can be enabled in non-private windows too.

Re:Firefox 61.0 Released by mitchty on Tuesday June 26, 2018 @01:55PM (#17402684)
Nice! This was my number one issue with Firefox as well. 400% cpu usage with about 40 tabs compared to safari was getting to be too much.

Yes I'm one of "those" people. I hoard tabs like they're going out of style.

Re:Firefox 61.0 Released by alex30 on Tuesday June 26, 2018 @06:03PM (#17404327)
What incantation do you do to make your cpu go to 400%?
Re:Firefox 61.0 Released by mitchty on Wednesday June 27, 2018 @01:39PM (#17410148)
Sorry, the main process goes to 140%, and about 5 more other firefox processes start chewing up 80% cpu each. I just added them altogether.

I have seen it spike to 400% a few times in activity monitor.

As to what I'm doing, open up say lobsters, click on all the tabs that look interesting, forget them for a day, repeat. End of the week have a look see at things.

Re:Firefox 61.0 Released by geoelectric on Tuesday June 26, 2018 @07:04PM (#17404656)
Mac shows CPU usage as 100% per core. Means he has a quad-core or dual-core w/ hyperthreading.
Re:Firefox 61.0 Released by auscompgeek on Tuesday June 26, 2018 @08:20PM (#17404951)
Linux does the same thing too. I wonder whether this is a POSIX thing, or if it's just a rather common UNIX thing.
Re:Firefox 61.0 Released by woumn on Tuesday June 26, 2018 @11:28AM (#17401332)
Could you please report back with your findings? I'm also terribly interested in this as well.
Re:Firefox 61.0 Released by adpirz on Tuesday June 26, 2018 @11:38AM (#17401438)
Just updated!
Re:Firefox 61.0 Released by ponyous on Tuesday June 26, 2018 @12:21PM (#17401870)
For me the problem was only when firefox was running in retina mode. Going into Applications > Firefox > Right Click Get Info > Check "Open in Low Resolution"

The problem was fixed, but all the text looks bad now.

Re:Firefox 61.0 Released by woumn on Tuesday June 26, 2018 @01:08PM (#17402309)
That's interesting. That fix seems unreasonable for me considering I already have difficulty reading on screens. But that's at least a point to look for later on in the release notes.
Re:Firefox 61.0 Released by ktosobcy on Tuesday June 26, 2018 @05:52PM (#17404285)
Re:Firefox 61.0 Released by xoa on Tuesday June 26, 2018 @11:47AM (#17401529)
My personal test case will be with the UniFi 5.7/5.8 Controller web interface page. I've found consistently under the last few versions of Firefox that, while it's fine for at least an hour, if I leave it up constantly for ease of monitoring then after a day or two the Firefox process inevitably ends up pegging an entire core. There is no video whatsoever or any particularly fancy graphical usage, and while they may be doing something odd internally (I haven't had time to really dig into it) I'm not sure Firefox should end up in that state there over time. It's relatively easily repeatable though (will take a day but requires no interaction on my part) so I look forward to testing it. Although if it does resolve the problem I'll be mildly bummed whatever fix it was didn't make it into ESR, but so it goes.
Re:Firefox 61.0 Released by bzbarsky on Tuesday June 26, 2018 @12:45PM (#17402130)
Would it be possible to get access to the page in question to try to diagnose this problem?

If it would, please let me know at bzbarsky at mit dot edu.

If not, would you be willing to use a Firefox nightly and follow the steps at https://developer.mozilla.org/en-US/docs/Mozilla/Performance... then send me a link to the profile that gets generated?

Re:Firefox 61.0 Released by matthew-wegner on Tuesday June 26, 2018 @02:18PM (#17402869)
Re:Firefox 61.0 Released by bzbarsky on Tuesday June 26, 2018 @02:37PM (#17403004)
Thank you! I'll give that a shot.
Re:Firefox 61.0 Released by xoa on Tuesday June 26, 2018 @01:34PM (#17402552)
I’ll try to repro myself first, already started up a test both on metal and a VM on a few systems. If it’s dealt with probably not much point investigating further. Should know within a day or two (or sooner, maybe it’s even regressed a bit). I’ll try to do a proper performance profile a report after that as well as ping a contact at Ubiquiti. They’d be the best placed to really dig into it.
Re:Firefox 61.0 Released by bzbarsky on Tuesday June 26, 2018 @02:38PM (#17403008)
Thank you! Please let me know how things look.

I agree that if it's a leak on the Ubiquiti side they would be best placed to deal with that aspect, but there might be things we can do better on the Firefox side to handle pages leaking too...

Re:Firefox 61.0 Released by woumn on Tuesday June 26, 2018 @11:50AM (#17401557)
That sounds like the developers messed up some Javascript references that are unable to be cleaned up to me. But interesting nonetheless.
Re:Firefox 61.0 Released by specialist on Tuesday June 26, 2018 @12:44PM (#17402120)
Memory leaks can be hard to track down.

After weeks of effort, a team mate finally figured out that a default noop function param, eg function blah( param = () => {} ), was never being gc’d. Wut?!

Re:Firefox 61.0 Released by bzbarsky on Tuesday June 26, 2018 @12:46PM (#17402134)
Was it getting captured by a closure being returned from the function, with that closure never getting gced?

But yes, in general tracking down leaks in JS is a huge pain...

Re:Firefox 61.0 Released by jvilk on Tuesday June 26, 2018 @03:18PM (#17403292)
I recently wrote an automatic memory leak detector and debugger, which makes this a lot easier (imo) [0]. You write a short input script that drives the UI in some loop, it looks for growing things (objects, arrays, event listener lists, DOM node lists...), and then collects stack traces to find the code that grew them. While it won't find all of the leaks, I was able to eliminate an average of 94% of the live heap growth I observed in 5 web applications (which found new memory leaks in Google Analytics, AngularJS, Google Maps, etc).

More information about the technique can be found in a PLDI paper (which I presented last week :D ), which I tried to write clearly so that it is accessible to a technical audience (i.e., non-academics) [1].

[0] http://bleak-detector.org/

[1] https://dl.acm.org/citation.cfm?doid=3192366.3192376 (shouldn't be paywalled, but if it is, it's also available at [0])

Re:Firefox 61.0 Released by waterhouse on Tuesday June 26, 2018 @01:28PM (#17402486)
I once used the Python function "gc.get_objects()", which returns a list of all objects in memory, to diagnose a memory leak. I don't suppose anything like it exists in JS tooling?
Re:Firefox 61.0 Released by jvilk on Tuesday June 26, 2018 @03:22PM (#17403329)
You can capture a heap snapshot in most browsers now using development tools. However, even a blank webpage (about:blank) has tens of thousands of objects allocated for the default JavaScript/DOM APIs. It's challenging to manually grok a JavaScript heap.
Re:Firefox 61.0 Released by waterhouse on Tuesday June 26, 2018 @09:23PM (#17405163)
The approach I used was to take a snapshot, count up all the different object types (making a hash table mapping "name of type of object" => "count of objects whose type has that name", then discarding the snapshot), then take another snapshot a few minutes later, and see what the difference was, and which type of object there was suddenly a lot more of. Then I looked at various instances of that object. It turned out to be some async queue-related object that was only used in a couple of places, so that narrowed it down a lot. Even if it were something generic like a hash table or list, I suspect looking at instances of the object and breaking them down by some observable quality (e.g. number of elements, the set of keys in a table, the types of objects in a list), plus the differential approach, will take you fairly far.
Re:Firefox 61.0 Released by bzbarsky on Tuesday June 26, 2018 @02:37PM (#17402997)
Not that I've seen.

There are some browser-specific tools that will do something like that out-of-band (e.g. in Firefox about:memory has a "Save GC & CC logs" option that outputs data about what the GC and cycle collector heap graphs look like). But interpreting those graphs is not easy, sadly.

Re:Firefox 61.0 Released by cptskippy on Tuesday June 26, 2018 @12:09PM (#17401772)
For me it's the Microsoft Azure Portal that would cause Firefox to idle around 50% CPU utilization. For the moment it seems to be behaving. I opened up the UniFi Controller interface too just to test and it caused it to spike briefly but it settled back down to under 6% across 6 cores. So it's improved IMO.
Re:Firefox 61.0 Released by stouset on Tuesday June 26, 2018 @03:14PM (#17403265)
I also had that, and it finally appears to be gone!

On the other hand, everything is blurry. I've searched to no end, and haven't found a solution. It looks like third-party apps used to when the rMBP was first released and apps that performed their own text rendering hadn't yet been updated to support it.

Any ideas?

Edit: I have no idea how this was even ever set in the first place, but a sibling comment mentioned the "Open in Low Resolution" flag that can be set on a binary, and it was enabled for Firefox on my machine. Either I set this manually trying to solve the performance issues (and somehow this setting persisted across uninstalls), or Firefox ships with this flag set. Unchecking it fixed the blurriness, and hopefully didn't bring back the performance problems.

Re:Firefox 61.0 Released by kup0 on Wednesday June 27, 2018 @04:14PM (#17411439)
It might have persisted across uninstalls (browser profiles often do), because people were suggesting the "open in low resolution" flag as a temporary fix for Firefox performance issues on Macs prior to v61 being released.
Re:Firefox 61.0 Released by woumn on Tuesday June 26, 2018 @11:22AM (#17401274)
Out of curiosity, were these high CPU usages on pages with any sort of video playing (culprits for me were Twitch or any live stream)? I was also having these issues, and I want to use Firefox, but the performance in the past was just too difficult.
Re:Firefox 61.0 Released by txcwpalpha on Tuesday June 26, 2018 @11:50AM (#17401556)
I had the same issues and avoided FF 57+ because of it. I just tried FF 61 and my results were mixed. Twitch and Youtube still made my CPU temps spike a little bit. It seems worse than Chrome but better than FF 57.

Google Maps, unfortunately, still made my CPU temp spike 30C+ as soon as I opened it. I use Maps a lot, so this is still a deal breaker for me.

Re:Firefox 61.0 Released by kup0 on Wednesday June 27, 2018 @04:16PM (#17411463)
Glad it's not just me. All of those really seem to stress Firefox out on my iMac. Chrome is far more efficient with something like Twitch.

Interesting thing I've noticed: If you don't use chat much and just want the video, try using Twitch's "pop-out" player that opens in its own window- for me this uses far less CPU (even in Chrome)

Chrome's "switch to fullscreen" transition on twitch for me is super laggy though, and I haven't been able to solve that one (Firefox switches to fullscreen smoothly).

Re:Firefox 61.0 Released by woumn on Tuesday June 26, 2018 @11:51AM (#17401565)
Yea, most of my browser time spent during free time is strictly on Twitch/Youtube/Netflix. Until these see improvements, then I won't make the switch.
Re:Firefox 61.0 Released by tostr on Tuesday June 26, 2018 @02:14PM (#17402836)
I only use firefox (for privacy reasons). But the macbook-burning-a-hole-in-my-pants behaviour that firefox creates on these sites has led me to using mpv with youtube-dl to watch most of youtube and all of twitch. If you have both installed you can just do a 'mpv https://www.twitch.tv/username' and it will work quite nicely. You might need to set up mpv to get the best quality, I think putting 'ytdl-format=bestvideo+bestaudio/best' in ~/.config/mpv/mpv.conf is sufficient. HTH.
Re:Firefox 61.0 Released by Royalaid on Tuesday June 26, 2018 @12:04PM (#17401713)
I am also in this camp and want to say that twitch especially is just horrible for performance
Re:Firefox 61.0 Released by woumn on Tuesday June 26, 2018 @01:06PM (#17402296)
Which is so surprising to me because it's using the HTML5 video player and toggling around with hardware acceleration does nothing to fix the issue. Perhaps it's the integrated chat + any of the add ones that Twitch has written for the videos?
Re:Firefox 61.0 Released by kup0 on Wednesday June 27, 2018 @04:19PM (#17411480)
I have noticed the pop-out player seems far more efficient, which leads me to think the chat and other things going on around the video might be the culprit
Re:Firefox 61.0 Released by Klover on Tuesday June 26, 2018 @01:01PM (#17402258)
Unrelated, but what do people do on twitch? I worry about getting out of touch with my children.
Re:Firefox 61.0 Released by 1011_1101 on Wednesday June 27, 2018 @04:17AM (#17406568)
In addition to FreeFulls comment, there are also talkshows/(video)podcasts. It's basically the main broadcasting platform for gamers and tech people.
Re:Firefox 61.0 Released by FreeFull on Tuesday June 26, 2018 @02:02PM (#17402755)
Twitch is mostly people streaming video of themselves playing games, but there are also some programmers that stream as they write software.
Re:Firefox 61.0 Released by daveslash on Tuesday June 26, 2018 @11:55AM (#17401617)
Video has been a big culprit for me - in both FireFox and Chrome. I've actually taken to using Microsoft Edge when I plan to play video.
Re:Firefox 61.0 Released by woumn on Tuesday June 26, 2018 @11:58AM (#17401647)
I use Opera as my personal browser and it handles video pretty well. It's running Chromium under the hood, and I don't think any major improvements have been made for video in Chromium or in any of the standards like HTML5 or flash. I see on par performance to stock Chrome.
Re:Firefox 61.0 Released by ktosobcy on Tuesday June 26, 2018 @02:38PM (#17403009)
I would lean towards "yes". Mostly problematic pages: YouTube and Twilio dashboard.
Re:Firefox 61.0 Released by geist on Tuesday June 26, 2018 @11:48AM (#17401541)
Unfortunately, this doesn't appear to be the case for me. I've been wanting to switch back to FF for some time but just opening a website causes my MBP CPU to go nuts, seems 61 is no different for me.
Re:Firefox 61.0 Released by xenophonf on Tuesday June 26, 2018 @12:30PM (#17401969)
You wouldn't happen to be running Tab Session Manager, would you? That was causing me all sorts of performance problems on both PCs and Macs, and I only tracked it down by disabling all extensions and themes and then incrementally re-enabling them.
Re:Firefox 61.0 Released by geist on Tuesday June 26, 2018 @01:35PM (#17402559)
I am not, although you did remind me to try without any extensions enabled again. I can't do a straight comparison as I'm at work now, but my work laptop (2017 vs 2016) is showing improvements. For reference, my work laptop also had high CPU usage on previous releases (even with no extensions), so there's hope yet. Although not being able to use the extensions I normally use would be a deal breaker (blockers and such)
Re:Firefox 61.0 Released by taf2 on Tuesday June 26, 2018 @12:22PM (#17401889)
For me it just consistently hovers around 18% cpu. Chrome on the same site sites around 1%... could it be optimized for memory usage isn’t always better if it means more cpu usage?
Re:Firefox 61.0 Released by FactolSarin on Tuesday June 26, 2018 @03:05PM (#17403210)
I'm at 2% right now typing this comment. Might be worth checking your add-ons.
Re:Firefox 61.0 Released by taf2 on Thursday June 28, 2018 @03:19PM (#17419700)
I always run stock browsers. Usually in FF on OS X any kind of css animation is very cpu intensive.
Re:Firefox 61.0 Released by some_account on Tuesday June 26, 2018 @11:56AM (#17401627)
Sounds like your computer. :)
Re:Firefox 61.0 Released by woumn on Tuesday June 26, 2018 @12:00PM (#17401666)
I saw the same issues and I'm using a 2017 MBP 15" with the middle of the road CPU and 16GB RAM (dedicated GPU as well).
Re:Firefox 61.0 Released by fwdpropaganda on Tuesday June 26, 2018 @03:41PM (#17403444)
> And now the dark theme also applies to address bar and hamburger menu which is nice bonus.

I have both normal FF and nightly FF. Before nightly getting the dark hamburger menu I'd never thought much of it. After nightly got the dark menu, now on normal FF I can't help but notice it every time I open the menu, and it annoys me to no end. Funny how these things work.

Re:Firefox 61.0 Released by shock on Tuesday June 26, 2018 @12:15PM (#17401826)
I wouldn't call it a great release. For me Firefox is unresponsive sometimes for literally minutes. I click on another tab and it takes minutes to switch to it. I just had it happen before posting this comment. I also took a perf profile and asked the people in #perf to look at it but nobody did.

So no, I wouldn't call this a great release.

Re:Firefox 61.0 Released by greglindahl on Tuesday June 26, 2018 @12:38PM (#17402049)
Firefox has tools to figure out which tabs are causing problems, try about:performance. Any freeze of minutes is generally caused by a memory leak in the javascript of a particular page.
Re:Firefox 61.0 Released by kemayo on Tuesday June 26, 2018 @01:54PM (#17402679)
I thought the recent work on multi-process stuff would have gotten rid of that? The browser chrome not being affected by in-page issues seems like a fairly important goal there...
Re:Firefox 61.0 Released by shock on Tuesday June 26, 2018 @05:39PM (#17404196)
I did look in about:performance, nothing obvious was there. I think it's rather because I have many tabs, not because of a specific tab.
Re:Firefox 61.0 Released by computerfriend on Tuesday June 26, 2018 @09:23PM (#17405164)
I have about 200 tabs on my work machine and something even worse on my personal one and have never seen this, so unless you're a serious tab hoarder I doubt it's that.
Re:Firefox 61.0 Released by pbhjpbhj on Tuesday June 26, 2018 @04:01PM (#17403572)
>about:performance //

Where's that in the menus?

Re:Firefox 61.0 Released by untog on Tuesday June 26, 2018 @04:23PM (#17403702)
It's a URL
Re:Firefox 61.0 Released by kvark on Tuesday June 26, 2018 @12:44PM (#17402113)
I'd be very interested to look into that, haven't seen it being stuck for minutes anywhere. Do you still have this profile around? or maybe just the URL?
Re:Firefox 61.0 Released by shock on Tuesday June 26, 2018 @05:38PM (#17404188)
Yes, I still have the profile. If you send me an email to the address in my profile, I'll send it to you.
Re:Firefox 61.0 Released by teilo on Tuesday June 26, 2018 @01:23PM (#17402445)
Yes, so far so good.

This is the page I always test for Firefox CPU usage: https://flypaper.soundfly.com/

I don't visit this site, but on a past Google hit, I discovered that it would make Firefox go crazy. No idea why.

Re:Firefox 61.0 Released by kup0 on Wednesday June 27, 2018 @04:08PM (#17411368)
Yes, 60 was giving me some performance troubles on iMac. Excited to see if 61 resolves them.
Re:Firefox 61.0 Released by cptskippy on Tuesday June 26, 2018 @12:11PM (#17401798)
They need to better staging these releases so that the lap warmer releases occur in fall and winter and these cooler releases start in early spring.
Re:Firefox 61.0 Released by ktosobcy on Tuesday June 26, 2018 @02:40PM (#17403029)
I'll bite - not everyone lives in Northern hemispere so for me (winter just started) it's perfect <s/>