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

Issue 1370723002: Include viewport visibility checks for autoplay experiment. (Closed)

Created:
5 years, 2 months ago by liberato (no reviews please)
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, jchaffraix+rendering, leviw+renderwatch, mlamouri+watch-blink_chromium.org, pdr+renderingwatchlist_chromium.org, nessy, szager+layoutwatch_chromium.org, vcarbune.chromium, vivekg_samsung, vivekg, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Include viewport visibility checks for autoplay experiment. If the value of the autoplayExperimentMode setting contains "-ifviewport", then the autoplay experiment will additionally require that the media is located in the viewport bounds. Autoplay is deferred until it comes into view, assuming that it passes any other autoplay experiment checks that have been turned on. If the value of the autoplayExperimentMode "-ifpagevisible", then we require that the page is visible. BUG=487345, 402044 Committed: https://crrev.com/e894363cd4e9b052486c26c2c3ab2adf6a500ae5 Cr-Commit-Position: refs/heads/master@{#357911}

Patch Set 1 : identical to PS4 on 1329853004 (probably rebased) #

Total comments: 100

Patch Set 2 : addressed cl feedback. #

Patch Set 3 : rebased. #

Patch Set 4 : rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+574 lines, -174 lines) Patch
M third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes.html View 1 11 chunks +110 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes-expected.txt View 2 chunks +48 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentConfig.h View 1 1 chunk +0 lines, -50 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentConfig.cpp View 1 1 chunk +0 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentHelper.h View 1 3 chunks +66 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp View 1 2 9 chunks +209 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMedia.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMedia.cpp View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutVideo.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutVideo.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.h View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 2 3 2 chunks +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
liberato (no reviews please)
Hi folks updated CL for the blink merge! This CL is identical to PS4 of ...
5 years, 2 months ago (2015-09-25 16:42:41 UTC) #2
esprehn
Okay I'll review this soon!
5 years, 2 months ago (2015-09-26 03:43:13 UTC) #3
ojan
Sorry again it took so long to review this. It's a large patch and quite ...
5 years, 2 months ago (2015-10-01 06:14:26 UTC) #4
esprehn
https://codereview.chromium.org/1370723002/diff/1/third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes.html File third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes.html (right): https://codereview.chromium.org/1370723002/diff/1/third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes.html#newcode123 third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes.html:123: smallType += (type.indexOf("-ifpagevisible")>-1)?"P":""; this test is huge and complicated, ...
5 years, 2 months ago (2015-10-01 07:04:15 UTC) #5
ojan
https://codereview.chromium.org/1370723002/diff/1/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp File third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp (right): https://codereview.chromium.org/1370723002/diff/1/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp#newcode26 third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp:26: static const double viewportTimerPollDelay = 0.5; On 2015/10/01 at ...
5 years, 2 months ago (2015-10-01 18:00:19 UTC) #6
esprehn
https://codereview.chromium.org/1370723002/diff/1/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp File third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp (right): https://codereview.chromium.org/1370723002/diff/1/third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp#newcode26 third_party/WebKit/Source/core/html/AutoplayExperimentHelper.cpp:26: static const double viewportTimerPollDelay = 0.5; On 2015/10/01 at ...
5 years, 2 months ago (2015-10-01 18:22:42 UTC) #7
liberato (no reviews please)
i think this addresses all of the cl feedback, except as noted in my comments. ...
5 years, 2 months ago (2015-10-01 22:49:03 UTC) #8
liberato (no reviews please)
esprehn, ojan: do you have any additional feedback on this, or may i land it ...
5 years, 2 months ago (2015-10-23 18:02:58 UTC) #9
philipj_slow
Ping?
5 years, 1 month ago (2015-11-02 15:56:21 UTC) #10
ojan
lgtm
5 years, 1 month ago (2015-11-04 07:42:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370723002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370723002/40001
5 years, 1 month ago (2015-11-04 07:42:42 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/118649) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-04 07:44:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370723002/60001
5 years, 1 month ago (2015-11-04 16:21:55 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/135818)
5 years, 1 month ago (2015-11-04 18:04:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370723002/60001
5 years, 1 month ago (2015-11-04 21:24:57 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-04 22:25:14 UTC) #23
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 22:26:13 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e894363cd4e9b052486c26c2c3ab2adf6a500ae5
Cr-Commit-Position: refs/heads/master@{#357911}

Powered by Google App Engine
This is Rietveld 408576698