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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1814863002: Make page popups work under OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 4a8e86b36ef797495dfc657c799570b1bfd82d86..3a7bdce6f06e4c3fd2cb05fa612107225934d69c 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -979,7 +979,11 @@ void RenderViewHostImpl::OnShowView(int route_id,
void RenderViewHostImpl::OnShowWidget(int route_id,
const gfx::Rect& initial_rect) {
- if (is_active_)
+ if (delegate_->GetFrameTree()
+ ->root()
+ ->render_manager()
+ ->current_host()
+ ->is_active())
nasko 2016/03/17 17:25:45 Is this the correct check to make here? I think th
kenrb 2016/03/17 18:59:48 If the is_active_ bit is never false on a top-leve
nasko 2016/03/17 19:10:46 Oops, I've read it current_frame_host. I still thi
kenrb 2016/03/17 20:00:06 Possibly it could be used for some kind of UI redr
delegate_->ShowCreatedWidget(route_id, initial_rect);
Send(new ViewMsg_Move_ACK(route_id));
}

Powered by Google App Engine
This is Rietveld 408576698