News for hackers. Stuff that matters.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by asvitkine on Monday April 10, 2023 @03:57PM (#35516687)
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."

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tough on Monday April 10, 2023 @03:58PM (#35516701)
They went for copying philips ambient lights on tv's but with software, what could go worng
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by bee_rider on Monday April 10, 2023 @04:23PM (#35516942)
Neat idea, I bet the intern had fun implementing it, why was it on by default?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by warent on Monday April 10, 2023 @04:30PM (#35517032)
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.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by TechBro8615 on Monday April 10, 2023 @04:45PM (#35517185)
It's not unreasonable to hold YouTube devs and QA engineers to a higher standard than everyone else who doesn't work for a ~trillion dollar corporation or deploy code that runs on billions of devices.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by alluro2 on Monday April 10, 2023 @04:48PM (#35517215)
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 out how the choice to turn this on by default should have been more nuanced and thought through.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by lobocinza on Monday April 10, 2023 @05:21PM (#35517540)
IMO the implementation sucks and the feature is questionable. Recently I set the browser to dark mode, which tells YT to also use dark mode, and if I haven't read here I wouldn't know that this is a toggleable feature. It's sad when we can't tell a feature and a bug apart.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Consultant32452 on Monday April 10, 2023 @05:43PM (#35517760)
Not being able to distinguish between a feature and a bug is a feature, not a bug.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by lobocinza on Tuesday April 11, 2023 @06:52AM (#35523311)
It's an UI issue.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tempestn on Monday April 10, 2023 @05:12PM (#35517467)
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... by simlevesque on Monday April 10, 2023 @05:18PM (#35517511)
Here's what's available, requires permissions:

- BatteryManager.charging

- BatteryManager.chargingTime

- BatteryManager.dischargingTime

- BatteryManager.level

https://developer.mozilla.org/en-US/docs/Web/API/BatteryMana...

https://caniuse.com/?search=BatteryManager

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by rileyphone on Monday April 10, 2023 @05:29PM (#35517621)
Isn't available in Firefox though...
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by JohnFen on Monday April 10, 2023 @07:08PM (#35518515)
I don't think you really want websites to make this determination anyway. There are a million reasons why a user might want a website to use fewer resources than their machine could support.

It should just be a setting the user can select. No probing of the machine necessary.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tempestn on Monday April 10, 2023 @10:10PM (#35519858)
What should be a setting? This specific youtube ambience thing? That is, but it shows the issue - you need to pick a default, and most people won't know they can change it. Having some idea of the capabilities of the device you're running on could allow you to choose sensible defaults.

But if you mean there should be a setting in the browser that websites could check, I agree that could be better.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by JohnFen on Tuesday April 11, 2023 @12:42PM (#35527640)
Sensible defaults go a long way, yes! Although in the case of this YouTube thing, I think the sensible default is to have it disabled regardless of the capabilities of the machine.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by bee_rider on Monday April 10, 2023 @05:07PM (#35517428)
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... by wiseowise on Monday April 10, 2023 @05:11PM (#35517457)
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... by kortilla on Monday April 10, 2023 @05:57PM (#35517884)
This is definitely worth getting salty about when you consider the cumulative electricity wasted for something so trivial. Google should be strictly monitoring performance and CPU consumption of their changes on youtube since a screwup there is the climate change equivalent of paying for 747s to fly in circles.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tablespoon on Monday April 10, 2023 @04:28PM (#35517004)
> Neat idea, I bet the intern had fun implementing it, why was it on by default?

Total speculation, but Firefox seems to be pushing out a lot of UI gimmicks. Maybe they're trying to drum up interest in the browser that way, since they seem intent on killing many of their other differentiators.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Georgelemental on Monday April 10, 2023 @04:31PM (#35517037)
This is a YouTube feature, not a Firefox one.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by CyanBird on Monday April 10, 2023 @04:30PM (#35517027)
Because the target audience for the feature is not tech savvy people but common users whom won't know it exists until it is shown to them/might be intimidated to delve onto FF settings

If you are tech savvy, you are then expected to be able to "bear the burden" of turning the feature off if it bothers you

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by oarsinsync on Monday April 10, 2023 @06:33PM (#35518203)
> might be intimidated to delve onto FF settings

It’s a YouTube setting, not a Firefox setting.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by devilbunny on Monday April 10, 2023 @06:44PM (#35518298)
Hell, I'm tech savvy - not a tech worker, but you'd better believe that you want me to be your end-user contact, I know a hell of a lot more than the people I work with - and I didn't even know this was an option. I'm not afraid of fixing FF settings, done it plenty of times. It's on by default. If someone who can install OpenBSD and make it a router for DSL over PPPoE in 2001 (side job) doesn't even know it exists and eats cycles [i.e., a "prosumer", not an expert, but not too far below a new hire and well beyond the masses), it's a bad idea. I don't have time to stay up on every way that people want to eat my electricity. I do know that YouTube spins up the fan on my iMac with disturbing regularity in a way that videos from alternative sources do not. So it's not the decoding.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by shapefrog on Monday April 10, 2023 @05:04PM (#35517401)
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... by shapefrog on Tuesday April 11, 2023 @05:40AM (#35522800)
For the replier that wanted a more substantive response; my comment can be expanded on by pointing out it is ultimately a commentary on the motivations involved in the employee-manager relationship within the bureaucracy of the mega-corporation, within a society where financial success drives including but not limited to comfort, mate selection, breeding, health, longevity and day-to-day basic survival itself - factors with the importance of which has been determined by millennia of evolutionary biology.

Ultimately the result can be that an employee chooses health, survival and the social status that a job title brings and ships a product or feature that they can sell to their manager as innovative / disruptive / greatness reimagined.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by rejectfinite on Monday April 10, 2023 @05:20PM (#35517535)
I really like it!

Then again, I am using a real computer and not a toy.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Dwedit on Monday April 10, 2023 @06:22PM (#35518102)
Looks like it's a Youtube feature rather than a Firefox feature?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by shrewduser on Monday April 10, 2023 @04:06PM (#35516792)
oh i saw this happen to me the other day, i was wondering if it was a new youtube feature or something. can't say i care for it.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by LanternLight83 on Monday April 10, 2023 @04:24PM (#35516960)
Just noticed it recently too, though it might have been an update to the stylus theme I use, I actually quite like it
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by sicariusnoctis on Monday April 10, 2023 @05:25PM (#35517564)
The "average color" (or whatever it is) could have been pre-computed server-side rather than tiring out the poor innocent client CPUs.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Phiwise_ on Monday April 10, 2023 @05:42PM (#35517747)
But then Google would be responsible for that one-time computation instead of making the clients do it billions of times.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by hsbauauvhabzb on Monday April 10, 2023 @05:45PM (#35517777)
They could do it on a few clients then ship the data back to the server. If they’re resourceful those clients don’t even need to be watching the video! (they could send it and compute the output in the background of another stream)
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by TeMPOraL on Monday April 10, 2023 @05:53PM (#35517851)
But that's a distributed problem now and those use up valuable developer time, which we know is the most important resource in the world...
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by hsbauauvhabzb on Tuesday April 11, 2023 @09:43PM (#35534044)
Yeah, but if google solve distributed processing just imagine the cost savings elsewhere (imagine involuntarily crowdsourcing video encoding, it would save them millions)
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by KeplerBoy on Monday April 10, 2023 @05:47PM (#35517793)
Couldn't this be done cheaply on the GPU?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by TingPing on Monday April 10, 2023 @11:03PM (#35520239)
The browser isn’t the ideal place to do things “on the GPU” unless the site is designed around it.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by hoseja on Tuesday April 11, 2023 @06:26AM (#35523113)
It could probably be somewhat cheaply extracted during decoding.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by heftig on Tuesday April 11, 2023 @07:49AM (#35523762)
The effect is created by scaling and blurring the storyboard images that are also used for the seek preview. The image is refreshed every ten seconds, with a CSS opacity animation fading from the old background image to the next over a couple of seconds.

This sounds like it should be relatively cheap if composition is properly accelerated.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by javajosh on Monday April 10, 2023 @05:45PM (#35517770)
To save another search:

On desktop and mobile devices:

    While playing a video, select the Settings button.
    Locate the Ambient Mode setting in the list of preferences.
    Toggle it to off to disable Ambient Mode for all videos on YouTube (in that browser).
It's in the same popup used for video quality and playback speed.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by jonesnc on Monday April 10, 2023 @06:37PM (#35518233)
For those who may be wondering, the Settings button referred to here is the gear button in the Youtube video player.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by 867-5309 on Monday April 10, 2023 @06:42PM (#35518275)
for those unfamiliar with visualising a gear, seek the doughnut with a notched circumference
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by musicale on Monday April 10, 2023 @06:53PM (#35518370)
for those unfamiliar with visualizing a doughnut, imagine a bagel-shaped treat of sweet cake-like dough, deep-fried and frosted, with optional sprinkles
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by wholinator2 on Monday April 10, 2023 @07:01PM (#35518448)
For those unfamiliar with visuals a bagel, imagine a gear shape, smoothed out and without protrusions
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by JohnFen on Monday April 10, 2023 @06:59PM (#35518423)
What's a bagel?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by 867-5309 on Monday April 10, 2023 @07:02PM (#35518465)
a jewish torus, plural torah
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by 1attice on Monday April 10, 2023 @07:12PM (#35518538)
A bagel is a first-degree pretzel.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by simondotau on Monday April 10, 2023 @07:27PM (#35518684)
For those people unfamiliar with a pretzel, imagine eating something that is making you thirsty.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by 1attice on Monday April 10, 2023 @07:49PM (#35518868)
For those of you unfamiliar with eating, it's similar to photosynthesis, but with matter instead of sunlight.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by cdaven on Monday April 10, 2023 @11:33PM (#35520461)
For those people unfamiliar with this joke, watch the TV show Seinfeld.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by 1attice on Tuesday April 11, 2023 @12:02AM (#35520667)
For those people unfamiliar with 'TV shows', they are similar to HBO series, but with less interepisodic narrative.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by jonesnc on Tuesday April 11, 2023 @12:09PM (#35527184)
lmao
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by LegitShady on Monday April 10, 2023 @06:36PM (#35518229)
I dont have that option. firefox on windows 10.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by duttonw on Monday April 10, 2023 @07:01PM (#35518454)
only shows up when in 'dark mode'.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by grawlinson on Monday April 10, 2023 @07:16PM (#35518582)
that is some amazingly crap UX. who the hell thought this was a good idea?
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by Retric on Monday April 10, 2023 @07:27PM (#35518674)
Ambient mode is a dark mode specific feature. If you don’t use dark mode then it’s not going to do anything.

Completely hiding it in normal mode isn’t the best choice, but it is somewhat understandable.

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by LegitShady on Monday April 10, 2023 @08:18PM (#35519084)
this makes sense. I stopped doing per site dark mode and just use the darkreader extension to make everything dark mode, so the option never appears.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by deafpolygon on Tuesday April 11, 2023 @12:11AM (#35520735)
In dark mode. Don't see it. Windows 11, Edge and Firefox.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by MikusR on Tuesday April 11, 2023 @04:09AM (#35522262)
Windows 10 and Firefox. In dark theme. No Ambient mode.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by tmtvl on Monday April 10, 2023 @05:57PM (#35517883)
As I don't use edgelord mode I'm guessing I don't have to worry about it.
Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by musicale on Monday April 10, 2023 @06:54PM (#35518382)
> make watching videos in Dark theme more immersive

the best way to make youtube videos more immersive is to block obnoxious advertisements, remove useless algorithm-driven recommendations, and delete the comment section

Re:Microsoft fixes 5-year-old Defender bug, reducing Firefox... by JohnFen on Monday April 10, 2023 @06:57PM (#35518400)
Thank you! I had no idea this was a thing YouTube did.