Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 1e665328a2f9847dee7d56cf9b84206ab0031d0a..40e7c885245a4bbee0fa38a367970f8be9907fb5 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -4258,6 +4258,11 @@ void WebContentsImpl::RenderFrameDeleted(RenderFrameHost* render_frame_host) { |
void WebContentsImpl::ShowContextMenu(RenderFrameHost* render_frame_host, |
const ContextMenuParams& params) { |
+ // If a renderer fires off a second command to show a context menu before the |
+ // first context menu is closed, just ignore it. https://crbug.com/707534 |
+ if (GetRenderWidgetHostView()->IsShowingContextMenu()) |
+ return; |
+ |
ContextMenuParams context_menu_params(params); |
// Allow WebContentsDelegates to handle the context menu operation first. |
if (delegate_ && delegate_->HandleContextMenu(context_menu_params)) |