Open plweil opened 10 years ago
Its definitely not by design. It looks like Chrome is setting PreventUserIdleSystemSleep when there is javascript audio context... I will try to investigate and do something about it. Thanks for letting me know and for your detailed bug report. I really appreciate it.
Chrome Beta 41 now implements AudioContext suspend()/resume(), which was added to the AudioContext spec. Suspending the context when it's not being used should fix this issue.
This extension appears to turn on PreventUserIdleSystemSleep on Macs, which prevents the computer from sleeping when the user has been idle for a certain number of minutes. In my own test on a Mac Pro running Mavericks, turning this extension on and off changes the PreventUserIdleSystemSleep setting to 1 and 0, respectively, when you run "pmset -g assertions" in Terminal. Is this by design? Is it avoidable?