News for hackers. Stuff that matters.
Re:Firefox 70 by roca on Tuesday October 22, 2019 @08:56PM (#21330040)
Firefox can and does aggressively throttle JS in background tabs. However, it's not easy to do this in a way that doesn't break sites. Sometimes background tabs have JS doing actually useful work --- playing audio, running a simulation, receiving notifications, stuff like that.

I don't know what Safari is doing differently to Firefox, and no doubt Firefox can improve here, but when people say "it's easy, just completely stop running JS in background tabs" they have no idea what tradeoffs that entails. (Just as when people said "browsers should just refuse to autoplay videos" had no idea what they were talking about.)

Re:Firefox 70 by chii on Tuesday October 22, 2019 @09:58PM (#21330367)
When people comments "it'd easy to..." or "just so XYZ, it's simple", it means they haven't actually done the work before, and is just sprouting bs.
Re:Firefox 70 by mantap on Wednesday October 23, 2019 @10:03AM (#21334710)
The answer is simply that yes Safari breaks websites, but users are happy to make that tradeoff.

It's common knowledge among web developers that browsers aggressively throttle background tabs so anybody who is designing a website that depends on it is misguided.

I don't hear anybody complaining about Safari being too aggressive with background tabs, I do hear people complaining that Firefox uses too much battery. So I think Firefox should be more aggressive.

Re:Firefox 70 by roca on Thursday October 24, 2019 @06:11AM (#21343084)
A poll of your friends may not constitute adequate data for making such decisions. We know for sure that techie-people and friends-of-techie-people are qualitatively different to the mass market.

These tradeoffs may also be different for different browsers. E.g. if you're Apple, perhaps breaking Web sites isn't a big deal since on iOS Safari is entrenched by fiat, and if users switch from Web apps to native apps, so much the better for Apple. For Mozilla that calculation works out differently.

Generally speaking "site X breaks in Firefox, works in Chrome" is a good way for Mozilla to lose market share.

Re:Firefox 70 by plopz on Wednesday October 23, 2019 @01:11PM (#21336665)
Haven't people been complaining that youtube will randomly stop playing in the background on safari? I'm not so sure users are happy about that as you say.
Re:Firefox 70 by mantap on Wednesday October 23, 2019 @03:00PM (#21337708)
That sounds simple to fix by checking whether the tab is playing audio.