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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2177203002: Exit flash fullscreen before opening new windows/popups Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 2511f6775631069c03a854f50561cb2f1ae42bff..22ec8df21e1d25970b9ae798ba434e8fd7cef959 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1490,6 +1490,12 @@ WebView* RenderViewImpl::createView(WebLocalFrame* creator,
const WebString& frame_name,
WebNavigationPolicy policy,
bool suppress_opener) {
+#if defined(ENABLE_PLUGINS)
+ if (PepperPluginInstanceImpl* plugin = GetFocusedPepperPlugin()) {
+ // Opening a window should exit fullscreen, as it does for HTML5 fullscreen.
+ plugin->FlashSetFullscreen(false, false);
+ }
+#endif
ViewHostMsg_CreateWindow_Params params;
params.opener_id = GetRoutingID();
params.user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698