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

Issue 1371533002: Remove "recursive" parameter from WebPageSerializer::serialize. (Closed)

Created:
5 years, 2 months ago by Łukasz Anforowicz
Modified:
5 years, 2 months ago
CC:
asanka, benjhayden+dwatch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@page-serialization-complete-serialization
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove "recursive" parameter from WebPageSerializer::serialize. After a recent CL, almost all callers of WebPageSerializer::serialize(WebLocalFrame*,...) pass recursive=false. The current CL removes the "recursive" parameter altogether and uses non-recursive / single-frame mode all the time. The only place that kept using the recursive mode was 1 test in dom_serializer_browsertest.cc. This test has been moved to a new SaveDownloadableIFrame test in save_page_browsertest.cc. The new test tests the same scenario as the old test, but coordinating serializing of multiple frames at the SavePackage level (rather than at the WebPageSerializer level). BUG=526786 Committed: https://crrev.com/d083d29530a507b7b5a6df1c572743c27c80c463 Cr-Commit-Position: refs/heads/master@{#351456}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Reverted VerifySavePackageExpectations changes. #

Total comments: 2

Patch Set 3 : Unconditionally enabling the new test. #

Patch Set 4 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -127 lines) Patch
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/test/data/downloads/iframe-src-is-a-download.htm View 1 chunk +18 lines, -0 lines 0 comments Download
M content/renderer/dom_serializer_browsertest.cc View 1 2 3 14 chunks +16 lines, -43 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D content/test/data/dom_serializer/iframe-src-is-exe.htm View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebPageSerializer.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebPageSerializerImpl.h View 4 chunks +10 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/web/WebPageSerializerImpl.cpp View 1 2 chunks +4 lines, -42 lines 0 comments Download
M third_party/WebKit/public/web/WebPageSerializer.h View 2 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
Łukasz Anforowicz
Daniel, could you please take a look?
5 years, 2 months ago (2015-09-25 16:03:23 UTC) #2
dcheng
https://codereview.chromium.org/1371533002/diff/1/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): https://codereview.chromium.org/1371533002/diff/1/chrome/browser/download/save_page_browsertest.cc#newcode335 chrome/browser/download/save_page_browsertest.cc:335: found = std::any_of(items.begin(), items.end(), C++11 library features are still ...
5 years, 2 months ago (2015-09-25 19:53:52 UTC) #3
Łukasz Anforowicz
Daniel, can you take another look please? https://codereview.chromium.org/1371533002/diff/1/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): https://codereview.chromium.org/1371533002/diff/1/chrome/browser/download/save_page_browsertest.cc#newcode335 chrome/browser/download/save_page_browsertest.cc:335: found = ...
5 years, 2 months ago (2015-09-25 20:35:57 UTC) #4
dcheng
lgtm https://codereview.chromium.org/1371533002/diff/20001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): https://codereview.chromium.org/1371533002/diff/20001/chrome/browser/download/save_page_browsertest.cc#newcode777 chrome/browser/download/save_page_browsertest.cc:777: // Disabled on Windows due to flakiness. http://crbug.com/162323 ...
5 years, 2 months ago (2015-09-25 21:28:21 UTC) #5
Łukasz Anforowicz
Asanka, could you please take a look? https://codereview.chromium.org/1371533002/diff/20001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): https://codereview.chromium.org/1371533002/diff/20001/chrome/browser/download/save_page_browsertest.cc#newcode777 chrome/browser/download/save_page_browsertest.cc:777: // Disabled ...
5 years, 2 months ago (2015-09-25 21:38:28 UTC) #7
Łukasz Anforowicz
Randy, could you please take a look? I know I have already sent out a ...
5 years, 2 months ago (2015-09-28 22:27:33 UTC) #9
Randy Smith (Not in Mondays)
save_page_browsertest.cc, iframe-src-is-a-download.htm LGTM. (I glanced at the other browser side code, but not at the ...
5 years, 2 months ago (2015-09-29 15:02:18 UTC) #10
Łukasz Anforowicz
Charlie, could you please take a look? For this CL, I mostly need sign-off for ...
5 years, 2 months ago (2015-09-29 16:31:24 UTC) #12
Charlie Reis
Great! content/ LGTM.
5 years, 2 months ago (2015-09-29 18:23:44 UTC) #13
asanka
Removing self since Randy's review should suffice.
5 years, 2 months ago (2015-09-29 20:37:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1371533002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1371533002/60001
5 years, 2 months ago (2015-09-29 21:10:12 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/89144)
5 years, 2 months ago (2015-09-29 21:20:39 UTC) #20
Łukasz Anforowicz
On 2015/09/29 21:20:39, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 2 months ago (2015-09-29 21:34:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1371533002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1371533002/60001
5 years, 2 months ago (2015-09-29 23:00:21 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-09-30 00:43:00 UTC) #27
commit-bot: I haz the power
5 years, 2 months ago (2015-09-30 00:44:27 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d083d29530a507b7b5a6df1c572743c27c80c463
Cr-Commit-Position: refs/heads/master@{#351456}

Powered by Google App Engine
This is Rietveld 408576698