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

Issue 2516473002: Cross-origin iframes: collect data under hypothetical loading strategies (Closed)

Created:
4 years, 1 month ago by dgrogan
Modified:
3 years, 9 months ago
Reviewers:
Ilya Sherman, ojan
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kinuko+watch, rwlbuis, sof, ajo, bengr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cross-origin iframes: collect data under hypothetical loading strategies Log % of frames to never load if we only loaded those that are - visible, or - 1 screen below - 2 screens below - 3 screens below We would load frames used for cross-origin talk in any of the scenarios. Note that we only look below for frames we might have to preload and ignore frames to the right, assuming that the vast majority of content is consumed vertically. Also note that logging to one bucket will also log to each lower bucket, which makes sense: if a frame has to be loaded under the "1 screen" scenario, it would have to be loaded under a "3 screen" scenario. This data will inform discussion of what our policy might eventually be. BUG=635105 Review-Url: https://codereview.chromium.org/2516473002 Cr-Commit-Position: refs/heads/master@{#453837} Committed: https://chromium.googlesource.com/chromium/src/+/86dfe7dc82290cede82086ad6e42ecaf54af4376

Patch Set 1 #

Total comments: 5

Patch Set 2 : ToT #

Patch Set 3 : just look below #

Total comments: 2

Patch Set 4 : ToT #

Patch Set 5 : Do arithmetic instead of intersects #

Total comments: 1

Patch Set 6 : rebase #

Patch Set 7 : honor scroll position and parent distance to viewport #

Patch Set 8 : rebase #

Total comments: 3

Patch Set 9 : fix histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+462 lines, -82 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 3 chunks +11 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 4 chunks +66 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/DeferredLoadingTest.cpp View 1 2 3 4 5 6 11 chunks +348 lines, -21 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 3 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (19 generated)
dgrogan
https://codereview.chromium.org/2516473002/diff/1/third_party/WebKit/Source/core/frame/FrameView.h File third_party/WebKit/Source/core/frame/FrameView.h (left): https://codereview.chromium.org/2516473002/diff/1/third_party/WebKit/Source/core/frame/FrameView.h#oldcode1026 third_party/WebKit/Source/core/frame/FrameView.h:1026: bool m_needsUpdateViewportIntersection; A previous CL removed the last uses. ...
4 years, 1 month ago (2016-11-17 22:28:34 UTC) #2
ojan
I don't think we should measure manhattan distance. In practice, people almost entirely scroll vertically. ...
4 years, 1 month ago (2016-11-22 00:41:59 UTC) #3
dgrogan
I'm still thinking about manhattan vs not. I get your point, that users scroll vertically ...
4 years ago (2016-11-29 00:57:32 UTC) #4
dgrogan
So I think we want the existing approach. The only scenario where it's inferior to ...
4 years ago (2016-11-30 21:55:39 UTC) #5
Z_DONOTUSE
I'd prefer #2. I think the logic we'd use in lazy loading a frame would ...
4 years ago (2016-12-01 00:47:13 UTC) #6
dgrogan
Here's #2.
4 years ago (2016-12-01 20:38:51 UTC) #9
Z_DONOTUSE
https://codereview.chromium.org/2516473002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2516473002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode4598 third_party/WebKit/Source/core/frame/FrameView.cpp:4598: parentRect = grandParent->contentsToRootFrame(parentRect); Unfortunately, I think this is n^2 ...
4 years ago (2016-12-11 03:39:45 UTC) #11
dgrogan
Ready for another look. https://codereview.chromium.org/2516473002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2516473002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode4598 third_party/WebKit/Source/core/frame/FrameView.cpp:4598: parentRect = grandParent->contentsToRootFrame(parentRect); On 2016/12/11 ...
4 years ago (2016-12-20 22:27:09 UTC) #13
ojan
Sorry for the delayed response. https://codereview.chromium.org/2516473002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2516473002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode4656 third_party/WebKit/Source/core/frame/FrameView.cpp:4656: int screensAway = frameRect().y() ...
3 years, 11 months ago (2017-01-18 00:55:01 UTC) #14
dgrogan
On 2017/01/18 00:55:01, ojan wrote: > Sorry for the delayed response. > > https://codereview.chromium.org/2516473002/diff/120001/third_party/WebKit/Source/core/frame/FrameView.cpp > ...
3 years, 10 months ago (2017-01-27 19:47:51 UTC) #15
dgrogan
rebase
3 years, 10 months ago (2017-02-05 03:26:18 UTC) #22
dgrogan
ptal This takes the parent distance into account when recording the children distance. For your ...
3 years, 10 months ago (2017-02-05 03:53:13 UTC) #24
dgrogan
ping ojan@
3 years, 9 months ago (2017-02-28 22:46:44 UTC) #25
ojan
lgtm
3 years, 9 months ago (2017-03-01 00:58:27 UTC) #27
ojan
3 years, 9 months ago (2017-03-01 00:58:41 UTC) #28
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/2516473002/300001
3 years, 9 months ago (2017-03-01 00:58:58 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/47563) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-01 01:02:23 UTC) #31
dgrogan
isherman, can you review histograms.xml?
3 years, 9 months ago (2017-03-01 01:25:19 UTC) #33
Ilya Sherman
histograms.xml lgtm % a nit: https://codereview.chromium.org/2516473002/diff/320001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2516473002/diff/320001/tools/metrics/histograms/histograms.xml#newcode85977 tools/metrics/histograms/histograms.xml:85977: + <int value="5" label="WouldVisible"/> ...
3 years, 9 months ago (2017-03-01 01:33:26 UTC) #34
dgrogan
https://codereview.chromium.org/2516473002/diff/320001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2516473002/diff/320001/tools/metrics/histograms/histograms.xml#newcode29822 tools/metrics/histograms/histograms.xml:29822: + Deprecated 11/2016 in favor of Navigation.DeferredDocumentLoading.StatesV4. Also updated ...
3 years, 9 months ago (2017-03-01 01:38:31 UTC) #35
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/2516473002/340001
3 years, 9 months ago (2017-03-01 01:39:39 UTC) #38
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 04:01:51 UTC) #41
Message was sent while issue was closed.
Committed patchset #9 (id:340001) as
https://chromium.googlesource.com/chromium/src/+/86dfe7dc82290cede82086ad6e42...

Powered by Google App Engine
This is Rietveld 408576698