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

Issue 2797473005: Fix interstitials on OOPIF-based guests. (Closed)

Created:
3 years, 8 months ago by lfg
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix interstitials on OOPIF-based guests. This CL attaches the interstitial RenderWidgetHostViewChildFrame to a CrossProcessFrameConnector in a RenderFrameProxyHost in an outer WebContents when an interstitial page gets attached. It also routes input events in the interstitial through the delegate's WebContents RenderWidgetHostInputEventRouter. BUG=660373 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2797473005 Cr-Commit-Position: refs/heads/master@{#463473} Committed: https://chromium.googlesource.com/chromium/src/+/1453e416f1a511576ff3ee6641e6a77a651b2ef4

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : add test #

Patch Set 4 : null check webcontents #

Total comments: 1

Patch Set 5 : addressing comments #

Total comments: 2

Patch Set 6 : addressing comments #

Patch Set 7 : rebase, fix blink renaming issues #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -24 lines) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 2 3 4 5 6 7 6 chunks +103 lines, -12 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/interstitial_teardown/embedder.js View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/interstitial_teardown/main.html View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_input_event_router.h View 3 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_input_event_router.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -8 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 5 chunks +59 lines, -3 lines 0 comments Download
M content/public/test/browser_test_utils.h View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 3 chunks +49 lines, -0 lines 0 comments Download

Messages

Total messages: 72 (54 generated)
lfg
Ken, can you do a first pass?
3 years, 8 months ago (2017-04-04 19:53:11 UTC) #5
kenrb
This all looks fine, although I don't know enough about the focus code in WebContentsImpl ...
3 years, 8 months ago (2017-04-05 20:00:00 UTC) #8
lfg
On 2017/04/05 20:00:00, kenrb wrote: > This all looks fine, although I don't know enough ...
3 years, 8 months ago (2017-04-05 21:19:11 UTC) #9
kenrb
On 2017/04/05 21:19:11, lfg wrote: > I've added a test that ensures that the interstitial ...
3 years, 8 months ago (2017-04-06 15:03:40 UTC) #10
lfg
Ken, please take another look. I've added a test that asserts that the interstitial is ...
3 years, 8 months ago (2017-04-07 16:44:57 UTC) #30
kenrb
lgtm with a nit. https://codereview.chromium.org/2797473005/diff/80001/content/public/test/browser_test_utils.h File content/public/test/browser_test_utils.h (right): https://codereview.chromium.org/2797473005/diff/80001/content/public/test/browser_test_utils.h#newcode370 content/public/test/browser_test_utils.h:370: // Rout the |event| through ...
3 years, 8 months ago (2017-04-07 17:06:31 UTC) #31
lfg
Avi, please take a look.
3 years, 8 months ago (2017-04-07 18:01:00 UTC) #36
Avi (use Gerrit)
This looks reasonable. I'm not an interstitial expert but from what I know this lgtm. ...
3 years, 8 months ago (2017-04-08 00:30:13 UTC) #40
lfg
+wjmaclean for web_view_browsertest.cc. https://codereview.chromium.org/2797473005/diff/100001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2797473005/diff/100001/content/browser/web_contents/web_contents_impl.cc#newcode1975 content/browser/web_contents/web_contents_impl.cc:1975: return GetFocusedWebContents()->GetMainFrame()->GetRenderWidgetHost(); On 2017/04/08 00:30:12, Avi ...
3 years, 8 months ago (2017-04-10 17:33:42 UTC) #44
wjmaclean
On 2017/04/10 17:33:42, lfg wrote: > +wjmaclean for web_view_browsertest.cc. > > https://codereview.chromium.org/2797473005/diff/100001/content/browser/web_contents/web_contents_impl.cc > File content/browser/web_contents/web_contents_impl.cc ...
3 years, 8 months ago (2017-04-10 17:56:41 UTC) #47
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/2797473005/140001
3 years, 8 months ago (2017-04-10 19:51:21 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/154139)
3 years, 8 months ago (2017-04-10 21:21:41 UTC) #55
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/2797473005/140001
3 years, 8 months ago (2017-04-10 21:24:12 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/407214)
3 years, 8 months ago (2017-04-10 21:40:35 UTC) #59
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/2797473005/140001
3 years, 8 months ago (2017-04-10 21:42:18 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/407244)
3 years, 8 months ago (2017-04-10 21:54:31 UTC) #63
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/2797473005/160001
3 years, 8 months ago (2017-04-11 00:11:36 UTC) #69
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 00:49:44 UTC) #72
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/1453e416f1a511576ff3ee6641e6...

Powered by Google App Engine
This is Rietveld 408576698