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

Issue 1610143002: Adds UMA for slow and fast back/forward WKWebController navigations. (Closed)

Created:
4 years, 11 months ago by stkhapugin
Modified:
3 years, 8 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds UMA for slow and fast back/forward WKWebController navigations. Adds new UMA histogram: Navigation.IOSWKWebViewSlowFastBackForward to track the slow/fast back and forward navigations. Fast navigations are navigations through WKBackForwardList. BUG=535622

Patch Set 1 #

Patch Set 2 : pre-review cleanup #

Total comments: 8

Patch Set 3 : Overriding goDelta: #

Total comments: 5

Patch Set 4 : Factored out logic to a helper. Added an early return. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -6 lines) Patch
M ios/web/web_state/ui/crw_wk_web_view_web_controller.mm View 1 2 3 5 chunks +59 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
stkhapugin
PTAL
4 years, 11 months ago (2016-01-20 16:27:53 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1610143002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/1610143002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode176 ios/web/web_state/ui/crw_web_controller.mm:176: FAST_BACK = 0, Back usually means previous (not negative ...
4 years, 11 months ago (2016-01-20 16:45:04 UTC) #3
stkhapugin
PTAL. Stuart, can you please respond to comment about the metric? https://codereview.chromium.org/1610143002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): ...
4 years, 11 months ago (2016-01-21 10:39:36 UTC) #4
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1610143002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/1610143002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode176 ios/web/web_state/ui/crw_web_controller.mm:176: FAST_BACK = 0, On 2016/01/21 10:39:36, stkhapugin wrote: > ...
4 years, 11 months ago (2016-01-21 15:03:49 UTC) #5
stuartmorgan
https://codereview.chromium.org/1610143002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (right): https://codereview.chromium.org/1610143002/diff/20001/ios/web/web_state/ui/crw_web_controller.mm#newcode176 ios/web/web_state/ui/crw_web_controller.mm:176: FAST_BACK = 0, On 2016/01/21 15:03:49, eugenebut wrote: > ...
4 years, 10 months ago (2016-01-28 23:25:44 UTC) #6
stkhapugin
PTAL https://codereview.chromium.org/1610143002/diff/40001/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm File ios/web/web_state/ui/crw_wk_web_view_web_controller.mm (right): https://codereview.chromium.org/1610143002/diff/40001/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm#newcode494 ios/web/web_state/ui/crw_wk_web_view_web_controller.mm:494: if (delta != 0) { On 2016/01/21 15:03:49, ...
4 years, 10 months ago (2016-02-05 15:40:15 UTC) #7
stuartmorgan
https://codereview.chromium.org/1610143002/diff/40001/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm File ios/web/web_state/ui/crw_wk_web_view_web_controller.mm (right): https://codereview.chromium.org/1610143002/diff/40001/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm#newcode501 ios/web/web_state/ui/crw_wk_web_view_web_controller.mm:501: [self isBackForwardListItemValid:holder->back_forward_list_item()]); On 2016/02/05 15:40:15, stkhapugin wrote: > Keeping ...
4 years, 10 months ago (2016-02-08 17:12:52 UTC) #8
stkhapugin
Eugene, can you tell me what are the things you want me to change to ...
4 years, 9 months ago (2016-03-04 18:45:39 UTC) #9
Eugene But (OOO till 7-30)
On 2016/03/04 18:45:39, stkhapugin wrote: > Eugene, can you tell me what are the things ...
4 years, 9 months ago (2016-03-04 18:57:43 UTC) #10
kkhorimoto
4 years, 8 months ago (2016-04-07 20:05:41 UTC) #11
On 2016/03/04 18:57:43, eugenebut wrote:
> On 2016/03/04 18:45:39, stkhapugin wrote:
> > Eugene, can you tell me what are the things you want me to change to
proceed?
> 
> Stuart expressed some concerns in the last comment. Do you think you can
address
> them?

It looks like Stuart's concerns are still valid.  I think that the general
approach of using the presence of the WKBackForwardListItem to indicate fast vs.
slow is correct, but we should probably do it in |-didFinishNavigation|.  I'm
not 100% sure off the top of my head whether this will be called for all
back/forward navigations + POST navigations, since I know that there are some
navigations where this isn't called (i.e. hash change events).  If you verify
that all codepaths in CRWWebViewWebController's
|-loadRequestForCurrentNavigationItem| go through |-didFinishNavigation|, then
that will work.  Otherwise, we should probably create a separate utility
function to record the UMA metric and call them from the navigation blocks
themselves.

Powered by Google App Engine
This is Rietveld 408576698