Safari Private Mode causes Mac to sleep while video is actively playing
Hey everyone, I have a MacBook (macOS, Safari) and I noticed a really annoying bug. Every time I watch a video on YouTube (or any website) in Safari Private/Incognito mode, my Mac goes to sleep even though the video is actively playing and not paused.
In normal Safari mode this doesn't happen, the Mac stays awake while a video plays. But in Private mode, it seems like Safari doesn't send the "media is playing, stay awake" signal to macOS, so the system sleeps on schedule regardless.
After waking up, the page shows completely blank and refreshing doesn't help. The only workaround is copying the URL and opening it in a new tab.
Temporary fix I found: Enabling "Prevent automatic sleeping on power adapter when the display is off" in Battery settings helps, but this shouldn't be necessary just to watch a video.
Has anyone else experienced this? Is there a proper fix or is this a known Safari bug?
Thanks