News for hackers. Stuff that matters.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by whizzkid on Monday November 20, 2017 @10:15AM (#15740430)
I really want Firefox Quantum to be at least as good as Chrome. But when I tried watching some HTML5 videos, it started using a significant amount of CPU on my Mac and it did not stop.

My experience for 3 major browsers on MacOS as follows:

- If you want noticeably longer battery life when on the travel.

1- Safari

2- Chrome/Firefox

- If you want seamless browsing experience.

1- Chrome

2- Firefox

3- Safari

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by scrollaway on Monday November 20, 2017 @10:31AM (#15740560)
Quantum has been really good performance wise on most sites. It's most flagrant on the Stripe API docs, which are sluggish as hell on Chrome Linux and butter-smooth on Firefox: https://stripe.com/docs/api

However, I have two major tab-management issues with Firefox which make it near-unusable for me:

1. No support for "scroll wheel to switch tabs" (scroll on tabs to switch between them). This is a feature common to nearly all Linux software and Firefox removed it a few versions ago. Quantum killed "Tab Wheel Scroll" which reimplemented it.

2. No support for multi-select tab management, which Chrome is amazing with. If you didn't know, in Chrome, you can ctrl+click and shift+click tabs to select multiple at once and close, move or snap all of them at once like in a file manager. Super useful.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by smcgruer on Monday November 20, 2017 @11:26AM (#15741054)
> sluggish as hell on Chrome Linux and butter-smooth on Firefox: https://stripe.com/docs/api

Hi; I work on scrolling/rendering in Chrome. Thanks for bringing this to my attention, that is some super janky scrolling in Chrome >_<. I've filed http://crbug.com/786991 for us to look into it.

Some technical background (since this is HN after all); at a quick glance there are two things going wrong here in Chrome.

1. We would normally want to 'composite' the scrolling region here, which means we paint the pixels only once into a saved layer and then just slide that up and down as you scroll. I believe that is not happening on the Stripe page because of the unusual way that they are doing the split-panel background. Looks like we're currently unable to tell that the background is an opaque color, so we can't apply sub-pixel font AA[0] - and on low DPI we will refuse to composite in that case.

2. Chrome's repainting of this page is really slow. :(. Firefox Nightly is also repainting the page when you scroll (as far as I can tell), but they're definitely doing it much faster than Chrome!

So our goal will be to try and figure out how to composite this page, and if that's not possible then we'll have to dig into the slow painting.

Note: Because we composite more readily on high DPI devices (where sub-pixel font AA[0] doesn't matter), this site should scroll nice and fast on a high resolution display. This includes most new laptops, all (?) phones/tablets, etc.

[0]: https://en.wikipedia.org/wiki/Subpixel_rendering

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by ComputerGuru on Monday November 20, 2017 @12:46PM (#15741673)
Omg a Chrome developer using the word “subpixel aliasing” in real life! I have been looking for you!

I’m about to go mad because I’ve been reporting bugs in subpixel aliasing under hi-dpi displays with non-standard DPIs (!= 96dpi) for a while but the Chromium QA team in India has been having a hard time triaging them, possibly because of the hi-dpi display requirement.

I’ve also got a fully reproducible issue involving CSS transforms I haven’t bugged yet as I’ve just been struggling to get someone to triage #765848 correctly as of yet:

https://bugs.chromium.org/p/chromium/issues/detail?id=765848

Can you send me an email, pretty please? mqudsi [at] NeoSmart [dot] net

I was experiencing this particular bug on all my hi-dpi machines but it magically went away on one of them (perhaps after an OS update, as it’s running Windows 10 RS4 seeds) but it’s fully reproducible on all my other machines with a clean profile on all channels.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by scrollaway on Monday November 20, 2017 @11:46AM (#15741208)
Thanks a lot for the insight! Really cool to see a reply straight from the horse's mouth :)

> Note: Because we composite more readily on high DPI devices (where sub-pixel font AA[0] doesn't matter), this site should scroll nice and fast on a high resolution display. This includes most new laptops, all (?) phones/tablets, etc.

Not the case for me. Touchscreen display on a UX asus laptop, 3.2k resolution on linux with intel card. Scrolling using the touchscreen is snappy, scrolling using the scroll wheel (synaptics emulation) is even worse than on my desktop.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by ComputerGuru on Monday November 20, 2017 @12:53PM (#15741711)
I think it depends on what your DPI is set to. The resolution itself doesn’t necessarily mean much, but typically 3k+ resolutions are accompanied with > 96dpi configurations.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by dewyatt on Monday November 20, 2017 @10:40AM (#15740640)
> sluggish as hell on Chrome Linux and butter-smooth on Firefox: https://stripe.com/docs/api

Wow you were not exaggerating on that.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by codelike on Monday November 20, 2017 @10:43AM (#15740670)
Firefox used to have the amazing "Mouse Gestures Suite" add-on, which provides scroll-wheel-in-tabs and rocker navigation. Unfortunately with the new Firefox (since v57) it doesn't work anymore, since it uses the old extension approach.

There seems to be a new add-on for the web extension approach (https://addons.mozilla.org/en-US/firefox/addon/foxy-gestures...), but I haven't tested it yet and am not sure how robust it is at this point.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by kk_cz on Monday November 20, 2017 @12:24PM (#15741502)
AFAIK there is currently no extension that would support rocker gestures.

Also mouse gestures now have the same annoying "feature" they've always had in Chrome: they don't work in "system" tabs (think about:preferences).

So you can't use mouse gesture to quickly go through opened tabs if at least one of them is the "system" one, the navigation simply dies there.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by codelike on Monday November 20, 2017 @02:30PM (#15742463)
I've tried out the Foxy Gestures add-on in the meantime. It turns out it has rocker gestures (called 'chord gestures' in the 'Other Gestures' setup tab) and besides the drawback you mentioned (doesn't work in system tabs) it works well so far.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by kk_cz on Tuesday November 21, 2017 @03:12AM (#15746480)
That's great news, thank you.

I don't think they're ever going to fix the "system tabs" issue, since it's supposedly a "feature", but at least some good news. :)

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by anonymousab on Monday November 20, 2017 @11:32AM (#15741100)
There was a custom xpi of mouse gestures redox that has a few more updates, but it's sadly unmaintained and broken in 57.

I've yet to find a gesture extension that supports the same rocker gestures (i.e. middle click + other click to change tabs).

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by bzbarsky on Monday November 20, 2017 @10:21PM (#15745259)
If scroll wheel switches tabs, what happens when you have enough tabs that they don't fit in the tabbar and the tabbar becomes scrollable? Does scrolling still switch tabs, or does it scroll the tabbar so you can find the tab you want to switch to? I believe in Firefox it does the latter. Chrome never has a scrollable tabbar (which has its own UX issues with lots of tabs), so doesn't have this problem...

Looks like https://bugzilla.mozilla.org/show_bug.cgi?id=566510 tracks the multiselect thing in Firefox and has seen some recent movement... That would indeed be very nice to have!

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by ropeladder on Monday November 20, 2017 @03:09PM (#15742791)
You want the Multiple Tab Handler add-on for Firefox. It's 57 ready and even works with tree style tabs.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by therein on Monday November 20, 2017 @11:06AM (#15740889)
> 2. No support for multi-select tab management, which Chrome is amazing with

Yeah I am missing this as well. I switched to Firefox a few days ago after hearing about all the improvements.

So far, three issues:

1- On my MBP, I am having serious issues when I have tabs to recover.

2- HTML5 videos are not hardware accelerated. Neither on OSX, nor on my Arch.

3- Cannot move multiple tabs from one window to another but that actually seems to work better with i3's drag and drop.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by seba_dos1 on Monday November 20, 2017 @08:11PM (#15744783)
About acceleration - dunno about macOS, but on GNU/Linux there's lots of low-hanging fruits to get by tweaking a few entries in about:config. Check out https://wiki.archlinux.org/index.php/Firefox/Tweaks
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by alexozer on Wednesday November 22, 2017 @11:04PM (#15762643)
Thank you for the multi-tab tip! I can't tell you how many times I've wrangled with Chrome to move more than one tab into a separate window while my tiling window manager fights to split each tab into a window separately.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by bpicolo on Monday November 20, 2017 @11:21AM (#15741012)
The Stripe docs work great on Mac Chrome, interesting that Linux fails there.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by ripdog on Monday November 20, 2017 @01:09PM (#15741831)
They also jank on windows - but only on my 1080p display. When I move it along to my 4k display, it suddenly janks a lot less, about 50fps or so. I wonder why chrome is turning on composition in 4k and off in 1080p?
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by BossHogg on Monday November 20, 2017 @03:47PM (#15743123)
Regarding #2, try All Tabs Helper. From your description it might be acceptable solution. Found it a few months ago and has become invaluable to me.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by ComputerGuru on Monday November 20, 2017 @12:52PM (#15741704)
I’ve been using Chrome since the very first release, and yet never knew about your point #2. Thank you for sharing!
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by dopamean on Monday November 20, 2017 @10:40AM (#15740643)
This was my exact experience. Last night I also tried to watch something on HBO Now and my fan was whirring so loudly I just stopped and switched back to Chrome. In the case of HBO it was a flash video however I had the same experience on YouTube using HTML5. It was the final straw for a weekend of testing both the desktop and mobile applications.

The thing that bugged me about the mobile app was that coming from Chrome it didn't seem to have the same level of integration with my phone. For instance I'd google search something, get the result which included a map, and then the map was not clickable. I expected to be able to tap it and have the map open in Google Maps but no. It was a static image.

I had similar experiences with other apps like Twitter, Instagram, and Redfin. I expected a link to the mobile site to launch the installed app on my phone but it never did. I looked around a bit in the settings and couldn't find anything to do it. I'm sure there's a solution for it but I got tired of poking around and went back to what just worked.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by maherbeg on Monday November 20, 2017 @10:54AM (#15740766)
What sites were you watching video on? I found the h264ify plugin to make a huge difference in performance and battery life watching YouTube in Firefox. I think non accelerated codecs get used otherwise.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by cpeterso on Monday November 20, 2017 @01:37PM (#15742034)
Here is the Firefox bug tracking high CPU usage when playing video on Mac. If you can reproduce high CPU on Mac, please share your Firefox's about:support information in the bug!

https://bugzilla.mozilla.org/show_bug.cgi?id=1418510

VP9 is disabled by default in Firefox on Mac because H.264 can be hardware-accelerated on Mac but VP9 can't. Firefox supports hardware accelerated VP9 on some Windows machines, though.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by clouddrover on Monday November 20, 2017 @10:13PM (#15745229)
> VP9 is disabled by default in Firefox on Mac

That's a setback for royalty-free media formats on the web. Is there a plan for VP9 to be enabled by default again in the future?

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by babuskov on Monday November 20, 2017 @10:36AM (#15740608)
I notice when I leave a 2+ hour YouTube video playing in the background, Safari can play 10 of those in a row and still keep usage to 2-3% of CPU. With Firefox something just happens after some time and it starts to 100% one of CPU cores.

Not sure if this is something YouTube does or it's a general video playback problem.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by acqq on Monday November 20, 2017 @02:36PM (#15742518)
You "discovered" a problem in Firefox when displaying Youtube or Facebook pages with more than one video, the problem which I mentioned more times on this site.

I observed it before FF 57 was released, on different Windows computers but especially catastrophic on the less powerful ones ( https://news.ycombinator.com/item?id=15688195 or https://news.ycombinator.com/item?id=15687830, I've mentioned that I also discovered that there are complaints at least since February this year, https://www.reddit.com/r/firefox/comments/5sikxt/firefox_unb... only to be downvoted heavily, however let's ignore that at the moment) but now on FF 57 it is provably the same. Just produce a page with more videos autostarting and marvel how much (unbelievably lot!) CPU Firefox uses.

8 videos playing on the page are enough to demonstrate it. Fascinatingly, even if they play somewhere on the page outside of the part which is currently displayed, and even if they are not producing any sound (marked as such) they are going to eat immense amount of CPU.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by dictum on Monday November 20, 2017 @11:29AM (#15741076)
Safari has been my main work browser for a while, and I really like it, but as soon as you need an extension, it's a sad story... It's not that you cannot make good extensions for Safari. Apple closed the doors for non registered (and paying) developers, even for homebrewing extensions for your own use. For instance, there's no good userscripts extension for Safari as of now, and the userstyles extension is adware (randomly opens MacKeeper affiliate tabs: https://github.com/350d/stylish/blob/bc8f01693000cf00421c7b9...).

The only major complaint I have with Firefox (as of 57) is with openh264. It grabs a whole CPU core for a video that Safari handles at a fourth of that or less.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by jyavenard on Monday November 20, 2017 @02:46PM (#15742618)
OpenH264 is only used with WebRTC video call.. And is a software only decoder/encoder...

There shouldn't be much difference for h264 videos between Safari and Firefox, except in Full Screen. For full screen, Safari uses the OS to render the images and can have a very efficient code path. Firefox doesn't support it at all (for now)

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by louhike on Monday November 20, 2017 @10:39AM (#15740638)
I've seen a lot of people complaining about that and most of them are on macs. Let's hope it's a bug which will be corrected quickly.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by taurath on Monday November 20, 2017 @03:13PM (#15742819)
I haven’t seen any acknowledgement yet from these threads - there’s been lots of cheerleading, but it’s not usable at all for me.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by Larrikin on Monday November 20, 2017 @11:56AM (#15741298)
What makes Chrome more seamless than Firefox with Sync? I rather enjoy my shared browsing history/stored passwords and being able to send tabs to any device
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by Flott on Monday November 20, 2017 @10:35AM (#15740603)
On my mac book pro 2015 and my Mac Mini 2011 I can't watch anything in 1080 (tried Youtube and Twitch) at all with Firefox if I have hardware acceleration enabled. It work just fine in Safari and Chrome will sometime start skipping frames after switching tabs.

I find my web browsing experience on Os X quite bad overall.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by tokenizerrr on Monday November 20, 2017 @10:20AM (#15740463)
Yeah, it's weird. Switched to Firefox Quantum as my main browser again, happened to use Plex and it was slightly laggy with huge cpu usage. Try it in chrome and it's smooth as always.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by tehbeard on Monday November 20, 2017 @10:24AM (#15740499)
I've seen comments that, at least on Linux it might not use GPU acceleration by default?
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by scrollaway on Monday November 20, 2017 @10:35AM (#15740597)
If this is the case for you, hit up `about:config` and change `layers.acceleration.force-enabled` to true. This heavily reduced tearing for me.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by floatboth on Monday November 20, 2017 @11:59AM (#15741325)
That is a must-enable setting for sure, but not video related. That's compositing.

Firefox still does not support VAAPI or VDPAU :(

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by jhasse on Monday November 20, 2017 @01:07PM (#15741816)
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by taurath on Monday November 20, 2017 @03:12PM (#15742811)
My CPU spikes to untold levels with Firefox on my MbP and makes the fan run almost constantly. Hasn’t gotten any coverage here as a problem but it’s a clean install.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by pixard on Monday November 20, 2017 @11:33AM (#15741113)
Try force enabling media.hardware-video-decoding.force-enabled -- decreased my CPU usage considerably.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by jyavenard on Monday November 20, 2017 @02:44PM (#15742600)
it won't help on mac...

Firefox doesn't use a blacklist of drivers / GPU like it does on window to enable HW decoding or not. Typically mac hardware is far more reliable.

the media.hardware-video-decoding.force-enabled is only of use on Windows in the event a card is blacklisted and you want to override the blacklist

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by caiob on Monday November 20, 2017 @10:23AM (#15740481)
Agreed! Video playback is one of the main reasons I keep coming back to Chrome.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by em3rgent0rdr on Monday November 20, 2017 @10:58AM (#15740805)
> "...on my Mac"

Unfortunately 3rd party browsers are at a disadvantage because it is harder to automatically detect and use video acceleration hardware capabilities.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by cwzwarich on Monday November 20, 2017 @12:36PM (#15741601)
You get it for free if you use CoreMedia (which is what WebKit does), but you can also use HW video decoding directly:

https://developer.apple.com/library/content/technotes/tn2267...

The VDADecoderCreate function will return an error if HW video decoding isn't available.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by jyavenard on Monday November 20, 2017 @02:42PM (#15742573)
VDA framework was made obsolete in OS X.

Equivalent features are provided in the Video Toolbox framework from OS X 10.8 and later.

Firefox only supports 10.9 and later from now on, and no longer uses VDA.

Unlike VDA, when you create a decoder, you just get one. You then query if it's a hardware decoder or not, but the behaviour is fundamentally the same between SW and HW.

For some reasons, the VT frame gives us a software decoder most of the time for some users.

Until now, I had only ever seen Mac Pro (including 2013 trashcan model) to not provide hardware decoding support.

If you attempt to decode a video that is less than 144 pixels high, you always get a software decoder.

Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by slobotron on Monday November 20, 2017 @11:45AM (#15741206)
So, Safari on macOS uses private APIs that even programs outside the App Store can't use?
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by em3rgent0rdr on Monday November 20, 2017 @11:51AM (#15741254)
Not that. But safari is able to be per-configured to just work for apple's specific chosen hardware. So it is at an advantage in that respect.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by awj on Monday November 20, 2017 @12:27PM (#15741526)
Have anything you can cite to expand on this? That seems like an incredibly basic thing for native applications to not have access to on OS X. (note: not iOS)
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by eridius on Monday November 20, 2017 @01:28PM (#15741972)
What does "seamless browsing experience" mean? Because Safari is pretty damn seamless for me, especially with its integration with Safari on iOS.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by bpicolo on Monday November 20, 2017 @11:22AM (#15741017)
Have to use Safari/Edge for netflix, otherwise you don't get 1080p. :(
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by cpeterso on Monday November 20, 2017 @01:35PM (#15742019)
Yeah, Netflix serves 720p to Firefox and Chrome and 1080p to Safari and Edge because they have hardware-based DRM.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by bpicolo on Monday November 20, 2017 @03:06PM (#15742773)
4k on Edge, even.
Re:Firefox Private Browsing vs. Chrome Incognito: Which Is F... by bwat49 on Monday November 20, 2017 @03:43PM (#15743079)
on windows 10 I just use the netflix app