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

Posted on Jun 27, 2026 2:38 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 27, 2026 2:41 AM

You've correctly identified the root cause: Safari Private Mode intentionally suppresses certain background APIs, including the power assertion that tells macOS "media is actively playing, don't sleep." This is a known behavior in Safari where Private Browsing mode has stricter restrictions on what web content can do in the background, which inadvertently prevents the sleep-prevention signal from being sent.


This is a confirmed bug in Safari. Apple has been aware of this class of issue since it appears in multiple macOS versions. Your workaround (enabling "Prevent automatic sleeping on power adapter when the display is off" in Battery settings) is currently the most reliable fix.


Additional workarounds:


1. Increase your display sleep timer:

- System Settings > Displays > Advanced (or Energy Saver > Prevent automatic sleeping when the display is off)

- Set "Turn off display after" to a longer time, or "Never" when on power adapter


2. Use a third-party app to prevent sleep:

- Apps like Lungo, Amphetamine, or Caffeine (all free/cheap on Mac App Store) can keep your Mac awake on demand without changing system-wide settings

- This is more flexible than changing system settings


3. Use a non-Private tab:

- If privacy is the concern, consider using a regular tab after clearing cookies, or use Firefox's Private Mode which handles this differently


4. Report the bug:

- Please report this at feedbackassistant.apple.com under Safari > "Safari Private Mode does not prevent display sleep during video playback"

- Include your macOS version and Safari version


This behavior has been confirmed on multiple versions of macOS/Safari and the Feedback reports help Apple prioritize the fix.

2 replies
Question marked as Top-ranking reply

Jun 27, 2026 2:41 AM in response to aateven12

You've correctly identified the root cause: Safari Private Mode intentionally suppresses certain background APIs, including the power assertion that tells macOS "media is actively playing, don't sleep." This is a known behavior in Safari where Private Browsing mode has stricter restrictions on what web content can do in the background, which inadvertently prevents the sleep-prevention signal from being sent.


This is a confirmed bug in Safari. Apple has been aware of this class of issue since it appears in multiple macOS versions. Your workaround (enabling "Prevent automatic sleeping on power adapter when the display is off" in Battery settings) is currently the most reliable fix.


Additional workarounds:


1. Increase your display sleep timer:

- System Settings > Displays > Advanced (or Energy Saver > Prevent automatic sleeping when the display is off)

- Set "Turn off display after" to a longer time, or "Never" when on power adapter


2. Use a third-party app to prevent sleep:

- Apps like Lungo, Amphetamine, or Caffeine (all free/cheap on Mac App Store) can keep your Mac awake on demand without changing system-wide settings

- This is more flexible than changing system settings


3. Use a non-Private tab:

- If privacy is the concern, consider using a regular tab after clearing cookies, or use Firefox's Private Mode which handles this differently


4. Report the bug:

- Please report this at feedbackassistant.apple.com under Safari > "Safari Private Mode does not prevent display sleep during video playback"

- Include your macOS version and Safari version


This behavior has been confirmed on multiple versions of macOS/Safari and the Feedback reports help Apple prioritize the fix.

Safari Private Mode causes Mac to sleep while video is actively playing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.