Live data from Hacker News

Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

bugzilla.mozilla.org

211–220 of 443 posts

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#211
post #187

Conspiracy theory — could this have been done on purpose for browser share dominance purposes?

Sometimes, but probably not in this context.

a) That'd be a very untargeted way to get that effect; Firefox isn't the only app that's going to be making calls like that.

b) Mozilla doesn't need any help losing marketshare in this era.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#212

Earlier quoted context omitted.

To save a search: "Ambient mode uses a lighting effect to make watching videos in Dark theme more immersive, by casting gentle colors from the video, into your screen's background."

Neat idea, I bet the intern had fun implementing it, why was it on by default?

They are not the intern anymore - they are senior vice president of battery draining, this feature absolutely killed it at the end of year review.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#213

Earlier quoted context omitted.

> Are you sure you want to invoke this logic? Because following it through imagine the energy savings if Firefox users switched to Chrome. Ironically, Mac users routinely complain about how power-hungry Chrome is on the Mac. Safari is significantly more efficient.

Is that because of the quality of Chrome or because Safari is a "blessed" application and probably gets to do things other applications do not? Entirely serious question. Apple is known to severely privilege their own applications over competitors.

Its been a really long time but safari on Windows was a thing and it did run a lot leaner in the background than anything else available at the time (except Opera if memory serves).

It’s entirely possible that Safari is intentionally avoiding features that make it wake up-

I doubt that it does anything unavailable to other browsers, thats MS territory, because they wanted features. I feel like safari, by contrast, doesn't want to add features.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#214

Quick napkin math of the wasted power : Firefox has ~300e6 users, let's assume the bug wasted 5 extra watts 4 hours a day. That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.

> That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug. Are you sure you want to invoke this logic? Because following it through imagine the energy savings if Firefox users switched to Chrome.

> imagine the energy savings if Firefox users switched to Chrome

This is why I left firefox.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#215
post #181

Earlier quoted context omitted.

Neat idea, I bet the intern had fun implementing it, why was it on by default?

This seems unnecessarily passive aggressive. Everyone makes mistakes or bugs, intern or not. It makes no sense to get this salty about basic human error. Also there's nothing wrong with implementing minor UX enhancements. If anything redirect the frustration to the leadership that doesn't prioritize fixing these kinds of errors.

Just to be clear I was being a bit snarky, but what I meant is that this is sort of a small, fun, less important project that could be easily given to an intern.

I don’t think there is a bug? It seems like a sort of image processing thing that might take a bit of compute run. To the extent that there’s blame, I’d lay the blame at the feet of whoever decided it should be turned on by default.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#216

Quick napkin math of the wasted power : Firefox has ~300e6 users, let's assume the bug wasted 5 extra watts 4 hours a day. That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.

> That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug. Are you sure you want to invoke this logic? Because following it through imagine the energy savings if Firefox users switched to Chrome.

Maybe compare manifest v2 friendly Firefox with uBlock Origin vs eventual Chrome without it :)

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#217

Earlier quoted context omitted.

Isn't it more like an auto maker issuing a recall to fix an injector issue in all their cars?

An analogy can only get you so far, but in this case the bug is caused by Microsoft Defender, yet Firefox, the car manufacturer, is a different entity. So I wouldn't call it a recall.

A bunch of cars across many manufacturers were recalled in the 2010's due to a defect in the airbags made by the same manufacturer.

One could also argue that the OS is the car, the browser is the chauffeur, and the user is the passenger.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#218
post #181

Earlier quoted context omitted.

Neat idea, I bet the intern had fun implementing it, why was it on by default?

This seems unnecessarily passive aggressive. Everyone makes mistakes or bugs, intern or not. It makes no sense to get this salty about basic human error. Also there's nothing wrong with implementing minor UX enhancements. If anything redirect the frustration to the leadership that doesn't prioritize fixing these kinds of errors.

We aren’t talking about misaligned element here, you know.

There are millions of FF Mac users, it’s not unreasonable to expect YouTube to do some basic testing. Never got any issues showing ads, though.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#219
post #181

Earlier quoted context omitted.

This seems unnecessarily passive aggressive. Everyone makes mistakes or bugs, intern or not. It makes no sense to get this salty about basic human error. Also there's nothing wrong with implementing minor UX enhancements. If anything redirect the frustration to the leadership that doesn't prioritize fixing these kinds of errors.

I don't think there's any error to fix. It's a feature - casting light from the video onto the UI, using JS, surely takes that amount of CPU. The question of why it is on by default stands - because it's little bit of eye candy, vs people's laptop batteries, CPU that could have been used to get other stuff done faster - so also their time, device thermals etc... I don't think it's just unnecessarily salty to point ou…

How much can websites determine about the power of the device they're running on? Obviously it'd be a security issue for them to know too much, but it would be nice to be able to progressively enhance the experience for more powerful devices that can handle it, beyond just mobile vs PC. Even just knowing whether a device was running off battery power could be useful.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#220

Quick napkin math of the wasted power : Firefox has ~300e6 users, let's assume the bug wasted 5 extra watts 4 hours a day. That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.

I love calculations like this and hope they are part of every engineer’s line of thinking. I originally came across this thinking in Andy Hertzfeld’s book - https://www.folklore.org/StoryView.py?story=Saving_Lives.txt Performance is time, energy, heat. It’s one of the easiest features to get and there are lots of tools, research, and philosophies to help get it. Memory and storage are similar. For anyone working on l…

There's a similar calculation (in a slightly different context) in a good scene in the movie Margin Call, about all the miles and hours saved by one bridge: https://www.youtube.com/watch?v=m8Mc-38C88g
Post reply on HN