| 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 79e041bfec69f2a9bf8b83b4269f2cda819acd28..fd5da689daeeb82e2e8fd1ce5960b3747ebd1630 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| @@ -3686,8 +3686,13 @@ bool HTMLMediaElement::isGestureNeededForPlayback() const
|
| if (!m_lockedPendingUserGesture)
|
| return false;
|
|
|
| - if (muted() && RuntimeEnabledFeatures::autoplayMutedVideosEnabled())
|
| + // We want to allow muted video to autoplay if:
|
| + // - the flag is enabled;
|
| + // - Data Saver is not enabled;
|
| + if (muted() && RuntimeEnabledFeatures::autoplayMutedVideosEnabled()
|
| + && !(document().settings() && document().settings()->dataSaverEnabled())) {
|
| return false;
|
| + }
|
|
|
| if (m_autoplayHelper->isGestureRequirementOverridden())
|
| return false;
|
|
|