Index: content/browser/browser_plugin/browser_plugin_guest.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc |
index 983ed41124707e3e1870864c03e51a7eae2e34e6..ed1bdea1f48b0846d1c34d108f1f2453f3010398 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -974,6 +974,10 @@ void BrowserPluginGuest::OnSetEditCommandsForNextKeyEvent( |
void BrowserPluginGuest::OnSetVisibility(int browser_plugin_instance_id, |
bool visible) { |
+ // For OOPIF-<webivew>, the remote frame will handle visibility state. |
+ if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests()) |
+ return; |
+ |
guest_visible_ = visible; |
if (embedder_visible_ && guest_visible_) |
GetWebContents()->WasShown(); |