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

Issue 2886943003: [Offline Pages] Adding missing image/CSS detection in FrameSerializer. (Closed)

Created:
3 years, 7 months ago by romax
Modified:
3 years, 6 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-frames_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, David Trainor- moved to gerrit, jam, kinuko+watch, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Adding missing image/CSS detection in FrameSerializer. Adding interfaces of problem detectors which are going to be used for UMA collecting for offline pages. See go/offline-pages-problems-metric for more information. BUG=730233 Review-Url: https://codereview.chromium.org/2886943003 Cr-Commit-Position: refs/heads/master@{#479180} Committed: https://chromium.googlesource.com/chromium/src/+/df3595bb1db14d038879823a24b60e9e284c861c

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments from petewil@ #

Patch Set 3 : unittests. #

Patch Set 4 : unittests (merged with TOT) #

Total comments: 2

Patch Set 5 : comments from dcheng@. #

Total comments: 5

Patch Set 6 : Added missing call to VisitingDone, and fix merge. #

Patch Set 7 : Remove interfaces and insert code into iteration. #

Patch Set 8 : Remove interfaces and add code into iteration. #

Total comments: 3

Patch Set 9 : comments from pete #

Patch Set 10 : reducing the number of buckets of percentage to 21. #

Total comments: 17

Patch Set 11 : Addressed comments from lucasza@ and holte@. #

Total comments: 2

Patch Set 12 : more comments. #

Total comments: 2

Patch Set 13 : Change to linear histogram. #

Patch Set 14 : fixing build. #

Patch Set 15 : Fixing hitting DCHECK. #

Patch Set 16 : fix tests. #

Patch Set 17 : fix tests. #

Patch Set 18 : trying fix test and minor bugs. #

Patch Set 19 : finally fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -9 lines) Patch
M content/browser/download/mhtml_generation_manager.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameSerializer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameSerializer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +59 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/Histogram.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/Histogram.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameSerializer.cpp View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameSerializerSanitizationTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameSerializer.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 79 (46 generated)
romax
This is the drafty CL I mentioned during the BlankPageDetector sync-up. Any comments are welcomed! ...
3 years, 7 months ago (2017-05-16 23:10:00 UTC) #2
Pete Williamson
Looks pretty good, a few comments. https://codereview.chromium.org/2886943003/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode120 third_party/WebKit/Source/web/WebFrameSerializer.cpp:120: std::unique_ptr<BlankPageDetector> blank_page_detector( Let's ...
3 years, 7 months ago (2017-05-17 00:31:48 UTC) #3
romax
Removed BlankPageDetector. Moved MissingImage/CSS detector to separate files. PTAnL, thanks. https://codereview.chromium.org/2886943003/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode120 ...
3 years, 7 months ago (2017-05-17 22:28:19 UTC) #4
Pete Williamson
On 2017/05/17 22:28:19, romax wrote: > Removed BlankPageDetector. > Moved MissingImage/CSS detector to separate files. ...
3 years, 7 months ago (2017-05-17 22:58:54 UTC) #5
romax
Added 2 unit tests for the collection. PTAL! If there's no major problem then I'll ...
3 years, 7 months ago (2017-05-22 21:48:04 UTC) #6
Pete Williamson
lgtm
3 years, 7 months ago (2017-05-22 22:08:57 UTC) #8
romax
qinmin@chromium.org: Please review changes in content/browser/download dglazkov@chromium.org: Please review changes in content/renderer and third_party/WebKit/ dcheng@chromium.org: ...
3 years, 7 months ago (2017-05-22 22:58:23 UTC) #10
dcheng
Can you give comment access to the design doc? https://codereview.chromium.org/2886943003/diff/60001/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/60001/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode123 third_party/WebKit/Source/web/WebFrameSerializer.cpp:123: ...
3 years, 7 months ago (2017-05-23 05:52:41 UTC) #12
romax
Just changed the doc to give comment access. Sorry about that.
3 years, 7 months ago (2017-05-23 05:56:22 UTC) #13
romax
Addressed dcheng@'s comment, PTAnL. also -dglazkov@. +aelias@ for content/renderer change. dcheng@, please review WebKit/ as ...
3 years, 7 months ago (2017-05-27 01:00:04 UTC) #16
fgorski
Mostly looks OK. Please solve the visiting done call and add a corresponding bug. https://codereview.chromium.org/2886943003/diff/80001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp ...
3 years, 6 months ago (2017-05-30 17:37:50 UTC) #17
qinmin
content/browser/download lgtm
3 years, 6 months ago (2017-05-31 16:31:17 UTC) #18
aelias_OOO_until_Jul13
content/renderer lgtm
3 years, 6 months ago (2017-05-31 19:25:06 UTC) #19
romax
addressed comments from fgorski@. dcheng@ could you please take another look? Happy to chat if ...
3 years, 6 months ago (2017-06-01 20:00:06 UTC) #20
dcheng
I like that it's easy to detect serialization issues--but it seems unnecessary to visit every ...
3 years, 6 months ago (2017-06-02 18:57:56 UTC) #21
Pete Williamson
A few comments on the new approach. https://codereview.chromium.org/2886943003/diff/140001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/140001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode329 third_party/WebKit/Source/core/frame/FrameSerializer.cpp:329: missing_image_count++; I ...
3 years, 6 months ago (2017-06-06 22:27:25 UTC) #22
romax
Removed the interfaces and added the logic in the iteration of nodes. PTAnL. +holte@ Please ...
3 years, 6 months ago (2017-06-06 22:43:43 UTC) #24
dcheng
+lukasza, do you mind reviewing this and I'll rubberstamp?
3 years, 6 months ago (2017-06-07 20:01:51 UTC) #28
Łukasz Anforowicz
This seems like useful data to collect - thanks! I've just had a few comments ...
3 years, 6 months ago (2017-06-07 21:11:35 UTC) #29
Steven Holte
https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode368 third_party/WebKit/Source/core/frame/FrameSerializer.cpp:368: static_cast<int64_t>(loaded_image_count * 100 / total_image_count), 21); You are using ...
3 years, 6 months ago (2017-06-07 22:36:42 UTC) #31
Łukasz Anforowicz
On 2017/06/07 22:36:42, Steven Holte wrote: > https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp > File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): > > https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode368 ...
3 years, 6 months ago (2017-06-07 22:47:25 UTC) #32
romax
Addressed comments, PTAnL. Thanks! https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode307 third_party/WebKit/Source/core/frame/FrameSerializer.cpp:307: delegate_.ShouldCollectProblemMetric() && frame.IsMainFrame(); On 2017/06/07 ...
3 years, 6 months ago (2017-06-08 02:25:23 UTC) #34
Łukasz Anforowicz
https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode307 third_party/WebKit/Source/core/frame/FrameSerializer.cpp:307: delegate_.ShouldCollectProblemMetric() && frame.IsMainFrame(); On 2017/06/08 02:25:22, romax wrote: > ...
3 years, 6 months ago (2017-06-08 16:08:45 UTC) #35
romax
thanks for the detailed comments, replied and addressed in the latest patch. PTAL. Thanks! https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp ...
3 years, 6 months ago (2017-06-08 20:02:07 UTC) #36
Steven Holte
https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode368 third_party/WebKit/Source/core/frame/FrameSerializer.cpp:368: static_cast<int64_t>(loaded_image_count * 100 / total_image_count), 21); On 2017/06/08 02:25:22, ...
3 years, 6 months ago (2017-06-08 20:43:01 UTC) #37
Łukasz Anforowicz
lgtm (with an optional question/comment below). https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp File third_party/WebKit/Source/core/frame/FrameSerializer.cpp (right): https://codereview.chromium.org/2886943003/diff/180001/third_party/WebKit/Source/core/frame/FrameSerializer.cpp#newcode307 third_party/WebKit/Source/core/frame/FrameSerializer.cpp:307: delegate_.ShouldCollectProblemMetric() && frame.IsMainFrame(); ...
3 years, 6 months ago (2017-06-08 20:48:54 UTC) #38
dcheng
RS LGTM with lukasza's comments addressed
3 years, 6 months ago (2017-06-08 21:02:52 UTC) #39
romax
Addressed the last comment from lukasza@. Also added the linear histogram methods in WebKit/Platform in ...
3 years, 6 months ago (2017-06-08 23:30:46 UTC) #41
Steven Holte
histogram linear use lgtm
3 years, 6 months ago (2017-06-09 00:17:59 UTC) #42
jochen (gone - plz use gerrit)
lgtm
3 years, 6 months ago (2017-06-12 08:37:27 UTC) #59
Łukasz Anforowicz
Serialization changes still lgtm - thanks!
3 years, 6 months ago (2017-06-13 21:02:12 UTC) #70
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/2886943003/360001
3 years, 6 months ago (2017-06-13 22:21:05 UTC) #75
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 22:29:59 UTC) #79
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/df3595bb1db14d038879823a24b6...

Powered by Google App Engine
This is Rietveld 408576698