<video> elements should disable the system and display sleep when playing on OS X.
Created attachment 117740 [details] Patch
Created attachment 117743 [details] Patch
Created attachment 117746 [details] Patch
Comment on attachment 117746 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=117746&action=review > Source/WebCore/html/HTMLMediaElement.cpp:2508 > + m_sleepDisabler = DisplaySleepDisabler::create("WebCore::HTMLMediaElement playback"); The reason for the power assertion doesn’t match the format used elsewhere in WebKit. It would be good to be consistent.
Also, it would be great if you could mention the associated Radar number both in Bugzilla and the ChangeLog.
<rdar://problem/9502155>
Created attachment 117773 [details] Patch While Mark already r+'d the previous patch, I thought this new patch was worth obsoleting that one. This new patch has changes to the WebKit2 sandbox profile, which allows DisplaySleepDisabler to work when running in the WebProcess.
Comment on attachment 117773 [details] Patch r=me
Committed r102024: <http://trac.webkit.org/changeset/102024>
*** Bug 65061 has been marked as a duplicate of this bug. ***