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

Issue 2640923003: Remove popup overlay from MHTML when requested (Closed)

Created:
3 years, 11 months ago by jianli
Modified:
3 years, 11 months ago
CC:
asanka, blink-reviews, blink-reviews-api_chromium.org, chili+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dewittj+watch_chromium.org, dglazkov+blink, dimich+watch_chromium.org, fgorski+watch_chromium.org, jam, kinuko+watch, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, petewil+watch_chromium.org, romax+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove popup overlay from MHTML when requested If the page is being loaded in background mode and saved to MHTML, we should try to remove popup overlay that obstructs viewing the normal content. This is controlled by MHTMLGenerationParams:: remove_popup_overlay. BUG=684091 TEST=new tests added Review-Url: https://codereview.chromium.org/2640923003 Cr-Commit-Position: refs/heads/master@{#445612} Committed: https://chromium.googlesource.com/chromium/src/+/ec72fc4b04c800b1d54063d09b79350fdcd0cc15

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebase #

Patch Set 3 : Address feedback #

Total comments: 1

Patch Set 4 : Fix comments #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -41 lines) Patch
M chrome/browser/android/offline_pages/background_loader_offliner.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc View 9 chunks +17 lines, -19 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/core/offline_page_archiver.h View 2 chunks +11 lines, -3 lines 0 comments Download
M components/offline_pages/core/offline_page_client_policy.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M components/offline_pages/core/offline_page_model.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M components/offline_pages/core/offline_page_model.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/offline_pages/core/offline_page_model_impl.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M components/offline_pages/core/offline_page_model_impl_unittest.cc View 1 2 5 chunks +36 lines, -4 lines 0 comments Download
M components/offline_pages/core/offline_page_test_archiver.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M components/offline_pages/core/offline_page_test_archiver.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/mhtml_generation_browsertest.cc View 1 chunk +23 lines, -0 lines 0 comments Download
M content/browser/download/mhtml_generation_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/mhtml_generation_params.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A content/test/data/popup.html View 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameSerializer.cpp View 1 2 5 chunks +38 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 4 chunks +30 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/frameserialization/popup.html View 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameSerializer.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
jianli
tkent for Blink fgorski for offline_pages nasko for content
3 years, 11 months ago (2017-01-19 01:35:21 UTC) #4
tkent
third_party/WebKit lgtm
3 years, 11 months ago (2017-01-19 03:38:48 UTC) #5
fgorski
https://codereview.chromium.org/2640923003/diff/1/components/offline_pages/core/client_policy_controller.h File components/offline_pages/core/client_policy_controller.h (right): https://codereview.chromium.org/2640923003/diff/1/components/offline_pages/core/client_policy_controller.h#newcode61 components/offline_pages/core/client_policy_controller.h:61: bool ShouldRemovePopupOverlay(const std::string& name_space) const; I've just discussed this ...
3 years, 11 months ago (2017-01-19 17:59:08 UTC) #8
Pete Williamson
Drive by comment: https://codereview.chromium.org/2640923003/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2640923003/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode150 third_party/WebKit/Source/web/WebFrameSerializer.cpp:150: // The bounding box of the ...
3 years, 11 months ago (2017-01-19 18:08:28 UTC) #10
dcheng
https://codereview.chromium.org/2640923003/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/2640923003/diff/1/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode147 third_party/WebKit/Source/web/WebFrameSerializer.cpp:147: if (!box || box->style()->display() == EDisplay::None) Note that an ...
3 years, 11 months ago (2017-01-19 18:24:55 UTC) #12
jianli
https://codereview.chromium.org/2640923003/diff/1/components/offline_pages/core/offline_page_archiver.h File components/offline_pages/core/offline_page_archiver.h (right): https://codereview.chromium.org/2640923003/diff/1/components/offline_pages/core/offline_page_archiver.h#newcode62 components/offline_pages/core/offline_page_archiver.h:62: struct CreateArchiveParams { On 2017/01/19 17:59:08, fgorski wrote: > ...
3 years, 11 months ago (2017-01-19 23:55:22 UTC) #15
jianli
https://codereview.chromium.org/2640923003/diff/1/components/offline_pages/core/client_policy_controller.h File components/offline_pages/core/client_policy_controller.h (right): https://codereview.chromium.org/2640923003/diff/1/components/offline_pages/core/client_policy_controller.h#newcode61 components/offline_pages/core/client_policy_controller.h:61: bool ShouldRemovePopupOverlay(const std::string& name_space) const; On 2017/01/19 17:59:08, fgorski ...
3 years, 11 months ago (2017-01-19 23:56:10 UTC) #16
fgorski
lgtm for offline_pages code https://codereview.chromium.org/2640923003/diff/60001/components/offline_pages/core/offline_page_model.h File components/offline_pages/core/offline_page_model.h (right): https://codereview.chromium.org/2640923003/diff/60001/components/offline_pages/core/offline_page_model.h#newcode74 components/offline_pages/core/offline_page_model.h:74: // Whether the page is ...
3 years, 11 months ago (2017-01-20 17:16:53 UTC) #20
dcheng
Sorry that lifetime of Blink objects is such a mess, and thanks for adding some ...
3 years, 11 months ago (2017-01-20 18:33:10 UTC) #21
nasko
content/ LGTM
3 years, 11 months ago (2017-01-20 23:03:23 UTC) #22
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/2640923003/80001
3 years, 11 months ago (2017-01-23 22:02:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/140631) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-23 22:07: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/2640923003/100001
3 years, 11 months ago (2017-01-23 22:26:09 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 02:36:42 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ec72fc4b04c800b1d54063d09b79...

Powered by Google App Engine
This is Rietveld 408576698