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

Issue 2389023002: Deferred frame loading stats v2 (Closed)

Created:
4 years, 2 months ago by dgrogan
Modified:
4 years, 2 months ago
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, sof, eae+blinkwatch, leviw+renderwatch, blink-reviews-dom_chromium.org, dglazkov+blink, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log to UMA why we would load a third-party frame This will give an estimate of the % of iframes that we can defer loading. We can defer offscreen frames unless they are probably used for cross-origin communication. BUG=635105 Committed: https://crrev.com/89406fe9ba00bb4b543d3bb89da3d4682539a065 Cr-Commit-Position: refs/heads/master@{#426375}

Patch Set 1 #

Patch Set 2 : remove extraneous changes #

Patch Set 3 : display:none doesn't work #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : make display none work. update histograms.xml #

Total comments: 15

Patch Set 6 : rebase #

Patch Set 7 : address comments #

Total comments: 7

Patch Set 8 : address comments round 2 #

Total comments: 4

Patch Set 9 : fix up some tests; remove comment #

Total comments: 3

Patch Set 10 : move Created logging to LocalDOMWindow; rename wouldLoadBecause #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -30 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 5 6 7 8 9 3 chunks +26 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 3 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/DeferredLoadingTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +186 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 3 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (18 generated)
dgrogan
Hi Daniel, Closer to ready-for-review but still need some help accessing a frame's style properties ...
4 years, 2 months ago (2016-10-05 01:19:08 UTC) #4
dcheng
Apologizes for the really delayed reply, that's unacceptable on my part. +timloh, who might have ...
4 years, 2 months ago (2016-10-07 05:52:40 UTC) #6
dgrogan
Thanks for the info. This patch is now ready to be reviewed. > Maybe not ...
4 years, 2 months ago (2016-10-07 23:04:35 UTC) #7
dcheng
Also, just for my understanding, it looks like we'll record this metric twice per page: ...
4 years, 2 months ago (2016-10-08 00:46:22 UTC) #13
Timothy Loh
On 2016/10/07 23:04:35, dgrogan wrote: > Thanks for the info. This patch is now ready ...
4 years, 2 months ago (2016-10-10 03:57:35 UTC) #16
dgrogan
Ready for another pass. This time with comments. https://codereview.chromium.org/2389023002/diff/80001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2389023002/diff/80001/third_party/WebKit/Source/core/dom/Document.cpp#newcode401 third_party/WebKit/Source/core/dom/Document.cpp:401: static ...
4 years, 2 months ago (2016-10-13 01:06:22 UTC) #17
kinuko
Just noticed this patch. A few drive-by questions (since I was somehow looking into the ...
4 years, 2 months ago (2016-10-13 14:05:30 UTC) #18
dcheng
https://codereview.chromium.org/2389023002/diff/80001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2389023002/diff/80001/third_party/WebKit/Source/core/dom/Document.cpp#newcode520 third_party/WebKit/Source/core/dom/Document.cpp:520: if (frame() && frame()->tree().top()->securityContext() && On 2016/10/13 01:06:21, dgrogan ...
4 years, 2 months ago (2016-10-13 23:00:43 UTC) #19
dgrogan
Kinuko's questions: (1) is the plan trying to defer loading the main html file for ...
4 years, 2 months ago (2016-10-14 21:45:08 UTC) #21
dcheng
https://codereview.chromium.org/2389023002/diff/80001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2389023002/diff/80001/third_party/WebKit/Source/core/dom/Document.cpp#newcode520 third_party/WebKit/Source/core/dom/Document.cpp:520: if (frame() && frame()->tree().top()->securityContext() && On 2016/10/14 21:45:08, dgrogan ...
4 years, 2 months ago (2016-10-14 23:40:30 UTC) #22
kinuko
On 2016/10/14 21:45:08, dgrogan wrote: > Kinuko's questions: > > (2) I thought that we ...
4 years, 2 months ago (2016-10-17 14:18:37 UTC) #24
dgrogan
Thanks for the review, answers inline. On 2016/10/14 23:40:30, dcheng wrote: > https://codereview.chromium.org/2389023002/diff/80001/third_party/WebKit/Source/core/dom/Document.cpp > File ...
4 years, 2 months ago (2016-10-18 20:16:31 UTC) #25
dcheng
Thanks for the explanations. The display:none info has been surprising to me. LGTM with comments ...
4 years, 2 months ago (2016-10-18 20:44:22 UTC) #26
dgrogan
https://codereview.chromium.org/2389023002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2389023002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode4315 third_party/WebKit/Source/core/frame/FrameView.cpp:4315: // Determining visibility uses the owner element's LayoutObject, I ...
4 years, 2 months ago (2016-10-18 22:11:45 UTC) #27
dgrogan
isherman, can you review the histograms?
4 years, 2 months ago (2016-10-18 22:26:35 UTC) #29
Ilya Sherman
LGTM, though it's not quite clear to me why you're renaming the histogram. (If you ...
4 years, 2 months ago (2016-10-19 00:10:09 UTC) #30
dcheng
https://codereview.chromium.org/2389023002/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2389023002/diff/180001/third_party/WebKit/Source/core/dom/Document.cpp#newcode522 third_party/WebKit/Source/core/dom/Document.cpp:522: frame()->tree().top()->securityContext() && On 2016/10/18 22:11:45, dgrogan wrote: > Even ...
4 years, 2 months ago (2016-10-19 01:34:54 UTC) #31
dgrogan
Thanks for the reviews. Daniel, another look? Most of the interdiff is a method rename. ...
4 years, 2 months ago (2016-10-19 18:59:54 UTC) #32
Ilya Sherman
On 2016/10/19 18:59:54, dgrogan wrote: > To Ilya's question: > > Renaming the histogram for ...
4 years, 2 months ago (2016-10-19 20:22:20 UTC) #33
dcheng
LGTM with one comment https://codereview.chromium.org/2389023002/diff/200001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2389023002/diff/200001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode353 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:353: m_document->maybeRecordLoadReason(Created); Does this need to ...
4 years, 2 months ago (2016-10-19 22:27:45 UTC) #34
dgrogan
https://codereview.chromium.org/2389023002/diff/200001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2389023002/diff/200001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode353 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:353: m_document->maybeRecordLoadReason(Created); On 2016/10/19 22:27:45, dcheng wrote: > Does this ...
4 years, 2 months ago (2016-10-19 22:31:40 UTC) #35
dcheng
https://codereview.chromium.org/2389023002/diff/200001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2389023002/diff/200001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode353 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:353: m_document->maybeRecordLoadReason(Created); On 2016/10/19 22:31:40, dgrogan wrote: > On 2016/10/19 ...
4 years, 2 months ago (2016-10-19 22:40:02 UTC) #36
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/2389023002/200001
4 years, 2 months ago (2016-10-19 22:44:33 UTC) #39
commit-bot: I haz the power
Committed patchset #10 (id:200001)
4 years, 2 months ago (2016-10-20 02:06:39 UTC) #41
Mathieu
On 2016/10/20 02:06:39, commit-bot: I haz the power wrote: > Committed patchset #10 (id:200001) Hi, ...
4 years, 2 months ago (2016-10-20 13:03:27 UTC) #42
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:14:35 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/89406fe9ba00bb4b543d3bb89da3d4682539a065
Cr-Commit-Position: refs/heads/master@{#426375}

Powered by Google App Engine
This is Rietveld 408576698