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

Issue 2101613002: Record the offscreen playing duration of autoplaying muted videos (Closed)

Created:
4 years, 5 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 4 months ago
CC:
asvitkine+watch_chromium.org, 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

Record the offscreen playing duration of autoplaying muted videos BUG=617681 Committed: https://crrev.com/cc74c3a6422be9a25c635021a57f7f0950c0381c Cr-Commit-Position: refs/heads/master@{#413522}

Patch Set 1 #

Total comments: 4

Patch Set 2 : refactoring #

Patch Set 3 : rebased and minor fixes #

Patch Set 4 : fixed comments #

Total comments: 10

Patch Set 5 : rebased and addressed Mounir's comments #

Total comments: 13

Patch Set 6 : addressed more comments from Mounir #

Total comments: 11

Patch Set 7 : addressed more comments #

Total comments: 5

Patch Set 8 : addressed isherman's comments #

Patch Set 9 : rebased #

Patch Set 10 : added some nullchecks #

Patch Set 11 : fix layout test expectation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -37 lines) Patch
M third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayUmaHelper.h View 1 2 3 4 5 6 2 chunks +38 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +121 lines, -33 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (20 generated)
Zhiqiang Zhang (Slow)
The CL is still rough, but I think we should take a initial round of ...
4 years, 5 months ago (2016-06-27 15:35:40 UTC) #2
mlamouri (slow - plz ping)
I think having a different class would help indeed. I wonder if you need to ...
4 years, 5 months ago (2016-06-30 11:14:18 UTC) #3
Zhiqiang Zhang (Slow)
PTAL! Done lots of refactoring :) https://codereview.chromium.org/2101613002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2101613002/diff/1/tools/metrics/histograms/histograms.xml#newcode22373 tools/metrics/histograms/histograms.xml:22373: + <owner>zqzhang@chromium.org</owner> On ...
4 years, 5 months ago (2016-07-12 16:22:02 UTC) #4
mlamouri (slow - plz ping)
I'm leaving this on the side because IIRC it's depending on a CL that hasn't ...
4 years, 5 months ago (2016-07-18 10:26:56 UTC) #5
Zhiqiang Zhang (Slow)
PTAL! Rebased onto the AutoplayUmaHelper patch. Did some refactoring on AutoplayUmaHelper. Hope it looks cleaner.
4 years, 4 months ago (2016-08-16 14:35:31 UTC) #8
mlamouri (slow - plz ping)
Thanks for the CL! See comments below. https://codereview.chromium.org/2101613002/diff/80001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/80001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode169 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:169: m_mutedVideoOffscreenDurationVisibilityObserver = ...
4 years, 4 months ago (2016-08-17 19:27:15 UTC) #9
Zhiqiang Zhang (Slow)
PTAL. Rebased and addressed Mounir's comments. https://codereview.chromium.org/2101613002/diff/80001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/80001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode169 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:169: m_mutedVideoOffscreenDurationVisibilityObserver = new ...
4 years, 4 months ago (2016-08-18 10:52:43 UTC) #11
mlamouri (slow - plz ping)
On 2016/08/18 at 10:52:43, zqzhang wrote: > BTW, I'm not sure if pause event is ...
4 years, 4 months ago (2016-08-18 13:44:04 UTC) #12
mlamouri (slow - plz ping)
https://codereview.chromium.org/2101613002/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode20 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:20: static const double umaBucketCount = 20; nit: no need ...
4 years, 4 months ago (2016-08-18 14:15:14 UTC) #13
Zhiqiang Zhang (Slow)
PTAL. Applied Mounir's comments. +isherman@ for histograms.xml https://codereview.chromium.org/2101613002/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode20 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:20: static const ...
4 years, 4 months ago (2016-08-18 15:11:02 UTC) #15
Ilya Sherman
https://codereview.chromium.org/2101613002/diff/140001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/140001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode20 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:20: const double umaBucketCount = 20; Hmm, why are these ...
4 years, 4 months ago (2016-08-18 19:45:03 UTC) #16
mlamouri (slow - plz ping)
lgtm with isherman's approval. https://codereview.chromium.org/2101613002/diff/140001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/140001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode20 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:20: const double umaBucketCount = 20; ...
4 years, 4 months ago (2016-08-19 10:00:09 UTC) #17
Zhiqiang Zhang (Slow)
PTAL. Addressed comments from Ilya and Mounir. https://codereview.chromium.org/2101613002/diff/140001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/140001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode20 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:20: const double ...
4 years, 4 months ago (2016-08-19 10:50:49 UTC) #19
Ilya Sherman
metrics lgtm % nits: https://codereview.chromium.org/2101613002/diff/180001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/180001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode19 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:19: const int32_t maxOffscreenDurationUmaMS = 3600000; ...
4 years, 4 months ago (2016-08-19 23:15:34 UTC) #20
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2101613002/diff/180001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2101613002/diff/180001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode19 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:19: const int32_t maxOffscreenDurationUmaMS = 3600000; On 2016/08/19 23:15:33, Ilya ...
4 years, 4 months ago (2016-08-22 09:40:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101613002/200001
4 years, 4 months ago (2016-08-22 09:45:46 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/255137) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-22 09:48:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101613002/240001
4 years, 4 months ago (2016-08-22 12:08:32 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101613002/260001
4 years, 4 months ago (2016-08-22 13:46:44 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/282043)
4 years, 4 months ago (2016-08-22 15:02:46 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101613002/260001
4 years, 4 months ago (2016-08-22 15:16:36 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/278101)
4 years, 4 months ago (2016-08-22 17:58:54 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101613002/260001
4 years, 4 months ago (2016-08-22 18:10:07 UTC) #41
commit-bot: I haz the power
Committed patchset #11 (id:260001)
4 years, 4 months ago (2016-08-22 20:30:44 UTC) #43
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/cc74c3a6422be9a25c635021a57f7f0950c0381c Cr-Commit-Position: refs/heads/master@{#413522}
4 years, 4 months ago (2016-08-22 20:32:34 UTC) #45
megjablon
4 years, 4 months ago (2016-08-22 22:54:47 UTC) #46
Message was sent while issue was closed.
On 2016/08/22 20:32:34, commit-bot: I haz the power wrote:
> Patchset 11 (id:??) landed as
> https://crrev.com/cc74c3a6422be9a25c635021a57f7f0950c0381c
> Cr-Commit-Position: refs/heads/master@{#413522}

A manual revert has been created here:
https://chromiumcodereview.appspot.com/2266253002/
("Revert patchset" does not work due to histogram.xml being too large)

Reason: 

Tests failing on
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Leak:
media/autoplay-muted.html
media/autoplay-unmute-offscreen.html
media/autoplay-when-visible.html

15:30:48.155 15954 worker/3 media/autoplay-unmute-offscreen.html leaked
15:30:48.155 15954   Xlib:  extension "RANDR" missing on display ":9".
15:30:48.155 15954   Xlib:  extension "RANDR" missing on display ":9".
15:30:48.155 15954  
[4:4:0822/153047:2028208541:WARNING:webmediaplayer_impl.cc(372)] Using
MultibufferDataSource
15:30:48.155 15954  
[4:4:0822/153047:2028209045:WARNING:webmediaplayer_impl.cc(372)] Using
MultibufferDataSource
15:30:48.158 18115 [35/36] media/autoplay-unmute-offscreen.html failed
unexpectedly (leak detected: ({"numberOfLiveActiveDOMObjects":[2,3]}))
15:30:48.157 15954 worker/3 media/autoplay-unmute-offscreen.html failed:
15:30:48.157 15954 worker/3  leak detected:
({"numberOfLiveActiveDOMObjects":[2,3]})

Powered by Google App Engine
This is Rietveld 408576698