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

Issue 2385773003: Add UMA to measure feasibility of making unique names immutable (Closed)

Created:
4 years, 2 months ago by dcheng
Modified:
4 years, 2 months ago
CC:
chromium-reviews, nasko+codewatch_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, creis+watch_chromium.org, Ɓukasz Anforowicz, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA to measure feasibility of making unique names immutable r418350 changed Chrome so that unique names are fixed once the frame has committed the first real load. Unfortunately, the bug still occurs if there are in-page navigations on the initial empty document mixed with window.name changes, since the first real load has not yet committed. One possible simplification is to just make unique name completely immutable. However, it's possible that some sites depend on creating a browsing context, naming it, and then navigating it. This measures how many sites depend on that behavior (though it doesn't measure how many sites might be broken if this behavior changes). BUG=607205 Committed: https://crrev.com/77df108d260b0f877cfae096bf136397fce6b4f8 Cr-Commit-Position: refs/heads/master@{#423411}

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments + uma xml #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -0 lines) Patch
M content/renderer/render_frame_impl.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 chunks +40 lines, -0 lines 1 comment Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +9 lines, -0 lines 3 comments Download

Messages

Total messages: 24 (10 generated)
dcheng
4 years, 2 months ago (2016-09-30 20:52:19 UTC) #4
dcheng
Btw, it would be nice to try to measure things that would break, but I'm ...
4 years, 2 months ago (2016-09-30 20:56:52 UTC) #5
Charlie Reis
> Unfortunately, the bug still occurs if there are in-page navigations mixed with window.name changes. ...
4 years, 2 months ago (2016-10-01 00:05:11 UTC) #8
dcheng
On 2016/10/01 00:05:11, Charlie Reis wrote: > > Unfortunately, the bug still occurs if > ...
4 years, 2 months ago (2016-10-01 20:25:14 UTC) #10
dcheng
ping =)
4 years, 2 months ago (2016-10-04 17:09:10 UTC) #11
Charlie Reis
Sorry for the delay, and thanks for the explanation. One question below, and LGTM if ...
4 years, 2 months ago (2016-10-04 18:15:45 UTC) #12
dcheng
I'm going to land this first and work on the followup (always send didCommitProvisionalLoad) as ...
4 years, 2 months ago (2016-10-05 20:37:24 UTC) #14
Ilya Sherman
histograms.xml lgtm % a nit: https://codereview.chromium.org/2385773003/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2385773003/diff/20001/tools/metrics/histograms/histograms.xml#newcode55755 tools/metrics/histograms/histograms.xml:55755: + enum="BooleanSuccess"> Please provide ...
4 years, 2 months ago (2016-10-05 22:44:35 UTC) #15
dcheng
https://codereview.chromium.org/2385773003/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2385773003/diff/20001/tools/metrics/histograms/histograms.xml#newcode55755 tools/metrics/histograms/histograms.xml:55755: + enum="BooleanSuccess"> On 2016/10/05 22:44:35, Ilya Sherman wrote: > ...
4 years, 2 months ago (2016-10-05 22:48:44 UTC) #16
dcheng
We would like this CL to make the branch cut, so I'm going to go ...
4 years, 2 months ago (2016-10-06 01:45:52 UTC) #17
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/2385773003/20001
4 years, 2 months ago (2016-10-06 01:46:39 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-06 02:54:42 UTC) #21
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/77df108d260b0f877cfae096bf136397fce6b4f8 Cr-Commit-Position: refs/heads/master@{#423411}
4 years, 2 months ago (2016-10-06 02:56:29 UTC) #23
Ilya Sherman
4 years, 2 months ago (2016-10-06 19:08:31 UTC) #24
Message was sent while issue was closed.
Sorry for missing your previous reply the first time around.

https://codereview.chromium.org/2385773003/diff/20001/tools/metrics/histogram...
File tools/metrics/histograms/histograms.xml (right):

https://codereview.chromium.org/2385773003/diff/20001/tools/metrics/histogram...
tools/metrics/histograms/histograms.xml:55755: +    enum="BooleanSuccess">
On 2016/10/05 22:48:44, dcheng wrote:
> On 2016/10/05 22:44:35, Ilya Sherman wrote:
> > Please provide an enum that's more specifically relevant to this histogram,
> e.g.
> > with labels "Kept old name" and "Assigned new name", or maybe just
> > Unchanged/Changed.
> 
> Is there no generic boolean enum type? That's really what I want here, as the
> behavior I'm measuring is already captured entirely in the UMA name.

I agree that the name says a lot, but it's still easier to read the data if the
buckets have clear labels.  I guess it's not critical, but I'd definitely
encourage you to land a CL with more semantically contentful labels for the
buckets.

Powered by Google App Engine
This is Rietveld 408576698