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

Unified Diff: content/browser/frame_host/interstitial_page_impl.cc

Issue 2797473005: Fix interstitials on OOPIF-based guests. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/interstitial_page_impl.cc
diff --git a/content/browser/frame_host/interstitial_page_impl.cc b/content/browser/frame_host/interstitial_page_impl.cc
index f3357c81587435073d7772e96fa6be9c795743e5..d0c4ffaaebd5c7b0af066134674423878e87b89b 100644
--- a/content/browser/frame_host/interstitial_page_impl.cc
+++ b/content/browser/frame_host/interstitial_page_impl.cc
@@ -754,6 +754,11 @@ void InterstitialPageImpl::CreateNewWindow(
void InterstitialPageImpl::SetFocusedFrame(FrameTreeNode* node,
SiteInstance* source) {
frame_tree_.SetFocusedFrame(node, source);
+
+ if (web_contents_) {
+ static_cast<WebContentsImpl*>(web_contents_)
+ ->SetAsFocusedWebContentsIfNecessary();
+ }
}
void InterstitialPageImpl::CreateNewWidget(int32_t render_process_id,
@@ -977,4 +982,13 @@ void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor);
}
+RenderWidgetHostInputEventRouter* InterstitialPageImpl::GetInputEventRouter() {
+ WebContentsImpl* web_contents_impl =
+ static_cast<WebContentsImpl*>(web_contents_);
+ if (!web_contents_impl)
+ return nullptr;
+
+ return web_contents_impl->GetInputEventRouter();
+}
+
} // namespace content
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.h ('k') | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698