rather than remove the user gesture requirement when autoplay is allowed, instead just override it for the instance.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb commit 1301c3d6b3ea7b0ace8849580eaecd311c83b7bb Author: liberato <liberato@chromium.org> Date: Wed May 18 21:43:55 2016 Don't remove the gesture requirement in the autoplay experiment. Instead of permanently unlocking the media element when the autoplay experiment permits autoplay, leave the element locked and override the gesture requirement for the particular play request. This also turns off deferred playback due to mute changes. Instead, checks for muted media are applied only when the playback is attempted. Only visibility requirements are deferred. BUG= 608341 Review-Url: https://codereview.chromium.org/1949633002 Cr-Commit-Position: refs/heads/master@{#394558} [modify] https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb/third_party/WebKit/LayoutTests/media/video-autoplay-experiment-just-once.html [modify] https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb/third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes-expected.txt [modify] https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp [modify] https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h [modify] https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb/third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp [modify] https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp [modify] https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb/third_party/WebKit/Source/core/html/HTMLMediaElement.h
Comment 1 by mlamouri@chromium.org
, May 5 2016