Muted <video> elements can block display from sleeping.
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Aug 2019 21:12:03 +0000 (21:12 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Aug 2019 21:12:03 +0000 (21:12 +0000)
commitd8b4fe2bb391a3862e3a992846fa7227633bca45
tree79033c07081997a1fec24bda32331fe1f2a41547
parent84b3a364647b8b740b4b6d5951e82a7e557a45ad
Muted <video> elements can block display from sleeping.
https://bugs.webkit.org/show_bug.cgi?id=200511

Reviewed by Eric Carlson.

Source/WebCore:

Test: media/video-muted-holds-sleep-assertion.html

Modify the shouldDisableSleep() method to take muting into account.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::shouldDisableSleep const):

LayoutTests:

* media/video-muted-holds-sleep-assertion-expected.txt: Added.
* media/video-muted-holds-sleep-assertion.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/video-muted-holds-sleep-assertion-expected.txt [new file with mode: 0644]
LayoutTests/media/video-muted-holds-sleep-assertion.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.cpp