| Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| index 2d9f3b45306f45be6be9af5196925884eedb2d14..59ec313479d5ee3100f21ca36dafafa2cc016bcf 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| @@ -1650,7 +1650,7 @@ void HTMLMediaElement::setReadyState(ReadyState state)
|
|
|
| if (!isGestureNeededForPlayback()) {
|
| if (isHTMLVideoElement() && muted() && RuntimeEnabledFeatures::autoplayMutedVideosEnabled()) {
|
| - m_autoplayVisibilityObserver = new ElementVisibilityObserver(this, WTF::bind(&HTMLMediaElement::onVisibilityChangedForAutoplay, this));
|
| + m_autoplayVisibilityObserver = new ElementVisibilityObserver(this, WTF::bind(&HTMLMediaElement::onVisibilityChangedForAutoplay, wrapPersistent(this)));
|
| m_autoplayVisibilityObserver->start();
|
| } else {
|
| m_paused = false;
|
|
|