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

Issue 2108403003: Measure whether muted videos that started playing with play() become visible at some point (Closed)

Created:
4 years, 5 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 5 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Measure whether muted videos that started playing with play() become visible at some point BUG=622720 Committed: https://crrev.com/9d961d0a083fe4ebd8c200c31b87d75e4727958b Cr-Commit-Position: refs/heads/master@{#404710}

Patch Set 1 : NOT READY #

Patch Set 2 : this one is ready #

Total comments: 7

Patch Set 3 : addressed mlamouri's comments #

Total comments: 14

Patch Set 4 : using EventListener #

Total comments: 22

Patch Set 5 : addressed comments #

Total comments: 6

Patch Set 6 : addressed comments #

Patch Set 7 : rebasing #

Patch Set 8 : fixed layout tests #

Total comments: 1

Patch Set 9 : clean up in a unload event listener #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -46 lines) Patch
M third_party/WebKit/LayoutTests/media/video-autoplay-experiment-modes-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/AutoplayUmaHelper.h View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp View 1 2 3 4 5 6 7 8 1 chunk +119 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 4 4 chunks +2 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 8 8 chunks +7 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/core/html/OWNERS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (14 generated)
Zhiqiang Zhang (Slow)
PTAL. Do I need to put other autoplay UMAs into the helper class in this ...
4 years, 5 months ago (2016-06-30 17:03:37 UTC) #3
mlamouri (slow - plz ping)
Can you move recordAutoplaySourceMetric to the helper? I think it will be clearer :) Also, ...
4 years, 5 months ago (2016-07-01 11:00:08 UTC) #4
Zhiqiang Zhang (Slow)
PTAL. Addressed mlamouri's comments. +asvitkine@ for reviewing histograms.xml +haraken@ for reviewing OWNERS and core.gypi A ...
4 years, 5 months ago (2016-07-04 14:34:38 UTC) #5
Zhiqiang Zhang (Slow)
PTAL. Addressed mlamouri's comments. +jwd@ for reviewing histograms.xml +haraken@ for reviewing OWNERS and core.gypi A ...
4 years, 5 months ago (2016-07-04 14:36:42 UTC) #7
mlamouri (slow - plz ping)
https://codereview.chromium.org/2108403003/diff/100001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.h File third_party/WebKit/Source/core/html/AutoplayUmaHelper.h (right): https://codereview.chromium.org/2108403003/diff/100001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.h#newcode23 third_party/WebKit/Source/core/html/AutoplayUmaHelper.h:23: enum AutoplayUnmuteActionStatus { nit: `enum class` https://codereview.chromium.org/2108403003/diff/100001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.h#newcode33 third_party/WebKit/Source/core/html/AutoplayUmaHelper.h:33: style: ...
4 years, 5 months ago (2016-07-04 15:18:19 UTC) #10
Zhiqiang Zhang (Slow)
PTAL, addressed mlamouri's comments (incl. using EventListener). +rkaplow may also take a look at histograms.xml ...
4 years, 5 months ago (2016-07-06 13:55:51 UTC) #12
rkaplow
lgtm
4 years, 5 months ago (2016-07-06 21:51:17 UTC) #13
haraken
https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode57 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:57: m_element->addEventListener(EventTypeNames::playing, this, false); Nit: Add indent. https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode57 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:57: m_element->addEventListener(EventTypeNames::playing, ...
4 years, 5 months ago (2016-07-07 01:16:36 UTC) #14
mlamouri (slow - plz ping)
https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode57 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:57: m_element->addEventListener(EventTypeNames::playing, this, false); On 2016/07/07 at 01:16:36, haraken wrote: ...
4 years, 5 months ago (2016-07-07 09:23:40 UTC) #15
mlamouri (slow - plz ping)
Thanks for using the event listener, it's quite nicer! :) I left a few comments ...
4 years, 5 months ago (2016-07-07 10:17:53 UTC) #16
haraken
On 2016/07/07 09:23:40, Mounir Lamouri wrote: > https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp > File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): > > https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode57 ...
4 years, 5 months ago (2016-07-07 10:32:53 UTC) #17
Zhiqiang Zhang (Slow)
PTAL. Addressed comments /w replies. https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2108403003/diff/120001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode57 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:57: m_element->addEventListener(EventTypeNames::playing, this, false); On ...
4 years, 5 months ago (2016-07-07 11:01:10 UTC) #19
mlamouri (slow - plz ping)
lgtm Looks great. Thanks! :) https://codereview.chromium.org/2108403003/diff/160001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2108403003/diff/160001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode91 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:91: handlePlayingEvent(); What about: ``` ...
4 years, 5 months ago (2016-07-07 12:45:47 UTC) #20
mlamouri (slow - plz ping)
https://codereview.chromium.org/2108403003/diff/160001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2108403003/diff/160001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode59 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:59: m_element->addEventListener(EventTypeNames::playing, this, false); Shouldn't you only add the event ...
4 years, 5 months ago (2016-07-08 17:58:29 UTC) #21
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2108403003/diff/160001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right): https://codereview.chromium.org/2108403003/diff/160001/third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp#newcode59 third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:59: m_element->addEventListener(EventTypeNames::playing, this, false); On 2016/07/08 17:58:29, Mounir Lamouri wrote: ...
4 years, 5 months ago (2016-07-08 18:16:49 UTC) #22
Zhiqiang Zhang (Slow)
Friendly ping to haraken@! Do you have any other concern about this CL? It's blocking ...
4 years, 5 months ago (2016-07-11 13:26:23 UTC) #23
haraken
Sorry, I was not thinking that I'm blocking this CL. LGTM.
4 years, 5 months ago (2016-07-11 13:29:07 UTC) #24
Zhiqiang Zhang (Slow)
On 2016/07/11 13:29:07, haraken wrote: > Sorry, I was not thinking that I'm blocking this ...
4 years, 5 months ago (2016-07-11 13:33:02 UTC) #25
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/2108403003/200001
4 years, 5 months ago (2016-07-11 13:36:44 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/259975)
4 years, 5 months ago (2016-07-11 14:53:09 UTC) #30
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/2108403003/220001
4 years, 5 months ago (2016-07-11 16:59:24 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years, 5 months ago (2016-07-11 19:53:56 UTC) #34
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 19:54:12 UTC) #35
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/9d961d0a083fe4ebd8c200c31b87d75e4727958b Cr-Commit-Position: refs/heads/master@{#404710}
4 years, 5 months ago (2016-07-11 19:56:54 UTC) #37
Dan Beam
4 years, 5 months ago (2016-07-12 18:01:02 UTC) #39
Message was sent while issue was closed.
https://codereview.chromium.org/2108403003/diff/220001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp (right):

https://codereview.chromium.org/2108403003/diff/220001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp:102:
m_element->removeEventListener(EventTypeNames::playing, this, false);
maybe removeEventListener() needs to be called even if the media element isn't
played to prevent leaking an ActiveDOMObject(?)

Powered by Google App Engine
This is Rietveld 408576698