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

Issue 2050623005: Move file chooser from RenderView(Host) to RenderFrame(Host). (Closed)

Created:
4 years, 6 months ago by nasko
Modified:
4 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, mlamouri+watch-content_chromium.org, tfarina, nasko+codewatch_chromium.org, jam, blink-reviews, dglazkov+blink, darin-cc_chromium.org, pfeldman, devtools-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move file chooser from RenderView(Host) to RenderFrame(Host). The file chooser does not work with out-of-process iframes, since it works through RenderView(Host). It needs to be moved to user RenderFrame(Host) at which point it works for subframes in a process different from its parent. BUG=615575 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation TBR=asvitkine@chromium.org Committed: https://crrev.com/ada75b29b3ecd8cb61c357befd50f24f2e50d319 Cr-Commit-Position: refs/heads/master@{#399373}

Patch Set 1 #

Patch Set 2 : Fix some compile errors. #

Patch Set 3 : Rebase to pick up https://crrev.com/399240 #

Patch Set 4 : Some cleanup. #

Total comments: 14

Patch Set 5 : Fixes based on reviews. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -267 lines) Patch
M components/test_runner/web_frame_test_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/test_runner/web_frame_test_client.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M components/test_runner/web_frame_test_proxy.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M components/test_runner/web_view_test_client.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/test_runner/web_view_test_client.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/bad_message.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 4 chunks +37 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 chunks +0 lines, -41 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 4 chunks +6 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download
M content/common/frame_messages.h View 1 2 5 chunks +32 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 5 chunks +0 lines, -32 lines 0 comments Download
M content/public/browser/render_view_host.h View 1 3 chunks +1 line, -9 lines 0 comments Download
M content/renderer/pepper/mock_renderer_ppapi_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/mock_renderer_ppapi_host.cc View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host_unittest.cc View 1 3 chunks +9 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 5 chunks +23 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 8 chunks +114 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 3 chunks +0 lines, -12 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 7 chunks +0 lines, -112 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebViewClient.h View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (15 generated)
dcheng
LGTM with nits https://codereview.chromium.org/2050623005/diff/80001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/2050623005/diff/80001/third_party/WebKit/public/web/WebFrameClient.h#newcode448 third_party/WebKit/public/web/WebFrameClient.h:448: WebFileChooserCompletion* chooserCompletion) { return false; } ...
4 years, 6 months ago (2016-06-10 21:43:36 UTC) #5
dcheng
To clarify, my LGTM is for Blink: i didn't examine any other files.
4 years, 6 months ago (2016-06-10 21:44:07 UTC) #6
nasko
Hey Avi and Dominic, Can you review this CL for me? dmazzoni@ -> components/test_runner/ avi@ ...
4 years, 6 months ago (2016-06-10 21:46:08 UTC) #8
dmazzoni
lgtm for test_runner
4 years, 6 months ago (2016-06-10 21:49:06 UTC) #9
Avi (use Gerrit)
LGTM with nits https://codereview.chromium.org/2050623005/diff/80001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2050623005/diff/80001/content/browser/frame_host/render_frame_host_impl.cc#newcode1536 content/browser/frame_host/render_frame_host_impl.cc:1536: bad_message::RVH_FILE_CHOOSER_PATH); Have we renamed bad messages ...
4 years, 6 months ago (2016-06-10 21:52:55 UTC) #10
nasko
Fixed all nits. Will TBR asvitkine@, since the histogram change is a single character replacement. ...
4 years, 6 months ago (2016-06-10 22:07:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050623005/100001
4 years, 6 months ago (2016-06-10 22:09:55 UTC) #16
Alexei Svitkine (slow)
histograms lgtm assuming you're not changing the meaning but just renaming the same semantic behavior. ...
4 years, 6 months ago (2016-06-10 22:11:45 UTC) #17
nasko
On 2016/06/10 22:11:45, Alexei Svitkine (OOO) wrote: > histograms lgtm assuming you're not changing the ...
4 years, 6 months ago (2016-06-10 22:14:44 UTC) #18
Alexei Svitkine (slow)
sg On Fri, Jun 10, 2016 at 6:14 PM, <nasko@chromium.org> wrote: > On 2016/06/10 22:11:45, ...
4 years, 6 months ago (2016-06-10 22:18:10 UTC) #19
Alexei Svitkine (slow)
sg On Fri, Jun 10, 2016 at 6:14 PM, <nasko@chromium.org> wrote: > On 2016/06/10 22:11:45, ...
4 years, 6 months ago (2016-06-10 22:18:10 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/237472)
4 years, 6 months ago (2016-06-10 23:53:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050623005/100001
4 years, 6 months ago (2016-06-11 00:34:27 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/245167)
4 years, 6 months ago (2016-06-11 02:20:31 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050623005/100001
4 years, 6 months ago (2016-06-11 08:51:47 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 6 months ago (2016-06-11 16:10:01 UTC) #30
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-11 16:10:04 UTC) #31
commit-bot: I haz the power
4 years, 6 months ago (2016-06-11 16:12:04 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ada75b29b3ecd8cb61c357befd50f24f2e50d319
Cr-Commit-Position: refs/heads/master@{#399373}

Powered by Google App Engine
This is Rietveld 408576698