Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Issue 1949633002: Don't remove the gesture requirement in the autoplay experiment. (Closed)

Created:
4 years, 7 months ago by liberato (no reviews please)
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb Cr-Commit-Position: refs/heads/master@{#394558}

Patch Set 1 #

Patch Set 2 : rebased, fixed tests. #

Patch Set 3 : fixed test expectations. #

Patch Set 4 : comments. #

Total comments: 4

Patch Set 5 : removed out-of-date assert and comment. #

Patch Set 6 : s/removeUserGestureRequirement/unlockUserGesture #

Total comments: 8

Patch Set 7 : cl feedback. #

Patch Set 8 : fixed test expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -117 lines) Patch
M third_party/WebKit/LayoutTests/media/video-autoplay-experiment-just-once.html View 1 2 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes-expected.txt View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h View 1 2 3 4 5 6 6 chunks +31 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp View 1 2 3 4 5 6 12 chunks +71 lines, -57 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentTest.cpp View 1 2 3 4 5 6 12 chunks +28 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 6 2 chunks +13 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 9 chunks +31 lines, -14 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
liberato (no reviews please)
this was more involved than i was expecting. please pay particular attention to HTMLMediaElement::play to ...
4 years, 7 months ago (2016-05-04 16:54:22 UTC) #2
mlamouri (slow - plz ping)
I had a quick look but a lot of things to digest here. Will looked ...
4 years, 7 months ago (2016-05-05 13:45:40 UTC) #3
liberato (no reviews please)
https://codereview.chromium.org/1949633002/diff/60001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1949633002/diff/60001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode2052 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:2052: if (m_autoplayHelper->isPlaybackDeferred()) On 2016/05/05 13:45:40, Mounir Lamouri wrote: > ...
4 years, 7 months ago (2016-05-05 17:48:57 UTC) #4
mlamouri (slow - plz ping)
It seems overly complicated :( Is there a way we can reduce the complexity of ...
4 years, 7 months ago (2016-05-06 15:05:47 UTC) #5
liberato (no reviews please)
i can't come up with anything that's much simpler. the key problem is that the ...
4 years, 7 months ago (2016-05-17 21:24:33 UTC) #6
mlamouri (slow - plz ping)
rs-lgtm to unblock then. I will have a look after it lands and see if ...
4 years, 7 months ago (2016-05-18 10:41:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949633002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949633002/140001
4 years, 7 months ago (2016-05-18 16:33:16 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/7769)
4 years, 7 months ago (2016-05-18 16:37:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949633002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949633002/140001
4 years, 7 months ago (2016-05-18 20:56:59 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-18 21:44:07 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 21:45:31 UTC) #17
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/1301c3d6b3ea7b0ace8849580eaecd311c83b7bb
Cr-Commit-Position: refs/heads/master@{#394558}

Powered by Google App Engine
This is Rietveld 408576698