Trying to play a media element synchronously after setting srcObject should succeed...
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2018 01:17:57 +0000 (01:17 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Dec 2018 01:17:57 +0000 (01:17 +0000)
commit989751bc3835928873aa020ea8317948e517692f
tree370e9a8c67b2f2bca3d1d0b8911bc6f77caf66e6
parente53b7a5b0a320ff459eff8abdbde080502c03ee2
Trying to play a media element synchronously after setting srcObject should succeed without user gesture
https://bugs.webkit.org/show_bug.cgi?id=192679

Reviewed by Eric Carlson.

Source/WebCore:

Check the srcObject mediaProvider value which is set synchronously.
Covered by updated fast/mediastream/local-audio-playing-event.html.

* html/HTMLMediaElement.h:
(WebCore::HTMLMediaElement::hasMediaStreamSrcObject const):

LayoutTests:

* fast/mediastream/local-audio-playing-event-expected.txt:
* fast/mediastream/local-audio-playing-event.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/mediastream/local-audio-playing-event-expected.txt
LayoutTests/fast/mediastream/local-audio-playing-event.html
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.h