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

Issue 670513003: Fixed the reporting of paint times in window.chrome.loadTimes() (Closed)

Created:
6 years, 2 months ago by Pat Meenan
Modified:
6 years, 2 months ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, ncarter (slow), site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fixed the reporting of paint times in window.chrome.loadTimes() The paint events were updating the document_state of whatever the last frame in the frame list was. In a case of "how did this ever work" it must have been sheer luck that the last local frame in the list was the main frame. The update just checks to make sure that the local frame is actually the main frame (no parent) when selecting the frame to update the document_state of. Could be that this broke in 38 when the proxy frames were added and maybe they were only tested on pages with a single frame. BUG=422913 Committed: https://crrev.com/dcc725bedfff11ab3265fa38fb36e15ea2261070 Cr-Commit-Position: refs/heads/master@{#300703}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed parent check and added TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M content/renderer/render_view_impl.cc View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 23 (6 generated)
Pat Meenan
jam@ PTAL. Hopefully trivial 2-line fix. It looks like this was broken by the addition ...
6 years, 2 months ago (2014-10-21 20:20:11 UTC) #2
Pat Meenan
cries@ - looks like you reviewed the original CL for RenderFrameProxyHosts that this is fixing: ...
6 years, 2 months ago (2014-10-21 20:26:16 UTC) #4
Charlie Reis
[+nasko,nick for FYI] Thanks for catching this. LGTM, and hopefully we can clean up the ...
6 years, 2 months ago (2014-10-21 23:40:20 UTC) #6
Charlie Reis
[+site-isolation-reviews]
6 years, 2 months ago (2014-10-21 23:40:48 UTC) #7
Pat Meenan
Looking at the scroll offset loop it looks like it has a very similar issue. ...
6 years, 2 months ago (2014-10-22 00:02:17 UTC) #8
Charlie Reis
On 2014/10/22 00:02:17, Pat Meenan wrote: > Looking at the scroll offset loop it looks ...
6 years, 2 months ago (2014-10-22 00:07:01 UTC) #9
nasko
On 2014/10/22 00:07:01, Charlie Reis wrote: > On 2014/10/22 00:02:17, Pat Meenan wrote: > > ...
6 years, 2 months ago (2014-10-22 00:09:43 UTC) #10
Pat Meenan
nasko@ it looks like I either need to remove the parent check from the loop ...
6 years, 2 months ago (2014-10-22 00:15:49 UTC) #11
Pat Meenan
ok, sorry about the overlapping mails. I removed the parent check and added the TODO ...
6 years, 2 months ago (2014-10-22 00:20:01 UTC) #12
Pat Meenan
https://codereview.chromium.org/670513003/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/670513003/diff/1/content/renderer/render_view_impl.cc#newcode3329 content/renderer/render_view_impl.cc:3329: for (WebFrame* frame = main_frame; frame; On 2014/10/21 23:40:20, ...
6 years, 2 months ago (2014-10-22 12:40:03 UTC) #13
nasko
LGTM
6 years, 2 months ago (2014-10-22 13:38:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670513003/20001
6 years, 2 months ago (2014-10-22 13:40:12 UTC) #16
commit-bot: I haz the power
A disapproval has been posted by following reviewers: creis@chromium.org. Please make sure to get positive ...
6 years, 2 months ago (2014-10-22 13:40:16 UTC) #18
Charlie Reis
Sorry to hold things up. LGTM.
6 years, 2 months ago (2014-10-22 16:07:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670513003/20001
6 years, 2 months ago (2014-10-22 16:08:39 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-22 18:04:24 UTC) #22
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 18:05:06 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dcc725bedfff11ab3265fa38fb36e15ea2261070
Cr-Commit-Position: refs/heads/master@{#300703}

Powered by Google App Engine
This is Rietveld 408576698