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

Issue 1879233005: Add UMA metric for tracking listeners for blocking touch before page finished loading (Closed)

Created:
4 years, 8 months ago by lanwei
Modified:
4 years, 7 months ago
CC:
chromium-reviews, dtapuska+blinkwatch_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, asvitkine+watch_chromium.org, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA metric for tracking listeners for blocking touch before page finished loading In the touch scrolling intervention proposal, rbyers@ proposed that we could treat all touch event listeners as passive until the load event fires. We are adding metrics that record when touchstart or first touchmove events are successfully preventDefaulted() before the load event to measure breakage of event handlers. BUG=601179 Committed: https://crrev.com/0e80d7ffdef2a817d66be17a0e9fe68029f6d8d7 Cr-Commit-Position: refs/heads/master@{#390257}

Patch Set 1 : Based on Dave's change. #

Patch Set 2 : Rebase #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : Add one more metric for after page load #

Total comments: 5

Patch Set 5 : Change cancelled to canceled #

Total comments: 6

Patch Set 6 : Reword description #

Patch Set 7 : Change the histogram name and discription #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -1 line) Patch
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 2 chunks +15 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (14 generated)
lanwei
4 years, 8 months ago (2016-04-22 02:00:38 UTC) #8
lanwei
4 years, 8 months ago (2016-04-22 17:23:53 UTC) #10
dtapuska
https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3901 third_party/WebKit/Source/core/input/EventHandler.cpp:3901: DEFINE_STATIC_LOCAL(EnumerationHistogram, pageloadListenerHistogram, ("Event.Touch.TouchBlockingOnPageload", 2)); I'd prefer if these were ...
4 years, 8 months ago (2016-04-22 17:34:14 UTC) #11
tdresser
In histograms.xml, Touchs -> Touches. https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3901 third_party/WebKit/Source/core/input/EventHandler.cpp:3901: DEFINE_STATIC_LOCAL(EnumerationHistogram, pageloadListenerHistogram, ("Event.Touch.TouchBlockingOnPageload", 2)); ...
4 years, 8 months ago (2016-04-22 17:34:52 UTC) #12
tdresser
https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3901 third_party/WebKit/Source/core/input/EventHandler.cpp:3901: DEFINE_STATIC_LOCAL(EnumerationHistogram, pageloadListenerHistogram, ("Event.Touch.TouchBlockingOnPageload", 2)); On 2016/04/22 17:34:52, tdresser wrote: ...
4 years, 8 months ago (2016-04-22 17:37:06 UTC) #13
dtapuska
https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3901 third_party/WebKit/Source/core/input/EventHandler.cpp:3901: DEFINE_STATIC_LOCAL(EnumerationHistogram, pageloadListenerHistogram, ("Event.Touch.TouchBlockingOnPageload", 2)); On 2016/04/22 17:37:06, tdresser wrote: ...
4 years, 8 months ago (2016-04-22 17:39:10 UTC) #14
tdresser
https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3901 third_party/WebKit/Source/core/input/EventHandler.cpp:3901: DEFINE_STATIC_LOCAL(EnumerationHistogram, pageloadListenerHistogram, ("Event.Touch.TouchBlockingOnPageload", 2)); On 2016/04/22 17:39:10, dtapuska wrote: ...
4 years, 8 months ago (2016-04-22 17:51:14 UTC) #15
dtapuska
https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/130004/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3901 third_party/WebKit/Source/core/input/EventHandler.cpp:3901: DEFINE_STATIC_LOCAL(EnumerationHistogram, pageloadListenerHistogram, ("Event.Touch.TouchBlockingOnPageload", 2)); On 2016/04/22 17:51:13, tdresser wrote: ...
4 years, 8 months ago (2016-04-22 18:02:35 UTC) #16
lanwei
4 years, 8 months ago (2016-04-22 22:25:00 UTC) #17
dtapuska
https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3904 third_party/WebKit/Source/core/input/EventHandler.cpp:3904: if (m_frame->document()->isLoadCompleted()) { Why can't this be a single ...
4 years, 8 months ago (2016-04-22 22:48:12 UTC) #18
lanwei
https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3904 third_party/WebKit/Source/core/input/EventHandler.cpp:3904: if (m_frame->document()->isLoadCompleted()) { On 2016/04/22 22:48:12, dtapuska wrote: > ...
4 years, 8 months ago (2016-04-22 23:55:24 UTC) #19
tdresser
https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3904 third_party/WebKit/Source/core/input/EventHandler.cpp:3904: if (m_frame->document()->isLoadCompleted()) { On 2016/04/22 23:55:23, lanwei wrote: > ...
4 years, 8 months ago (2016-04-25 15:45:19 UTC) #20
dtapuska
https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3904 third_party/WebKit/Source/core/input/EventHandler.cpp:3904: if (m_frame->document()->isLoadCompleted()) { On 2016/04/25 15:45:19, tdresser wrote: > ...
4 years, 8 months ago (2016-04-25 19:49:09 UTC) #21
lanwei
https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/170001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3904 third_party/WebKit/Source/core/input/EventHandler.cpp:3904: if (m_frame->document()->isLoadCompleted()) { On 2016/04/25 19:49:09, dtapuska wrote: > ...
4 years, 8 months ago (2016-04-25 20:29:34 UTC) #22
tdresser
This LGTM, assuming you've done thorough local testing.
4 years, 8 months ago (2016-04-26 15:54:58 UTC) #23
lanwei
On 2016/04/26 15:54:58, tdresser wrote: > This LGTM, assuming you've done thorough local testing. Yes, ...
4 years, 8 months ago (2016-04-26 19:59:47 UTC) #24
dtapuska
On 2016/04/26 19:59:47, lanwei wrote: > On 2016/04/26 15:54:58, tdresser wrote: > > This LGTM, ...
4 years, 8 months ago (2016-04-26 20:05:09 UTC) #25
lanwei
4 years, 8 months ago (2016-04-26 20:13:10 UTC) #27
bokan
lgtm
4 years, 8 months ago (2016-04-26 20:25:21 UTC) #28
Ilya Sherman
https://codereview.chromium.org/1879233005/diff/190001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/190001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode260 third_party/WebKit/Source/core/input/EventHandler.cpp:260: NotHandledTouches, // Not handled touch events. "Not handled events" ...
4 years, 8 months ago (2016-04-26 20:27:12 UTC) #29
lanwei
https://codereview.chromium.org/1879233005/diff/190001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879233005/diff/190001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode260 third_party/WebKit/Source/core/input/EventHandler.cpp:260: NotHandledTouches, // Not handled touch events. On 2016/04/26 20:27:11, ...
4 years, 8 months ago (2016-04-27 04:43:30 UTC) #31
tdresser
In terms of metric naming and descriptions, how about something like: Event.Touch.TouchDispositionsBeforePageLoad Records the disposition ...
4 years, 7 months ago (2016-04-27 18:31:43 UTC) #32
Ilya Sherman
On 2016/04/27 18:31:43, tdresser wrote: > In terms of metric naming and descriptions, how about ...
4 years, 7 months ago (2016-04-27 19:51:16 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879233005/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879233005/250001
4 years, 7 months ago (2016-04-27 21:15:58 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:250001)
4 years, 7 months ago (2016-04-28 00:36:37 UTC) #38
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:15:05 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0e80d7ffdef2a817d66be17a0e9fe68029f6d8d7
Cr-Commit-Position: refs/heads/master@{#390257}

Powered by Google App Engine
This is Rietveld 408576698