From e43b39a009ae73dd396333968b8536f1a0b76dcd Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 4 Dec 2013 17:18:55 +0800 Subject: [PATCH] Do not send "unresponsive" message if window is showing a modal dialog. --- browser/native_window.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/browser/native_window.cc b/browser/native_window.cc index 0db2cfd994..e8c337c01f 100644 --- a/browser/native_window.cc +++ b/browser/native_window.cc @@ -348,11 +348,12 @@ bool NativeWindow::IsPopupOrPanel(const content::WebContents* source) const { } void NativeWindow::RendererUnresponsive(content::WebContents* source) { - LOG(ERROR) << "NativeWindow::RendererUnresponsive"; window_unresposive_closure_.Cancel(); - FOR_EACH_OBSERVER(NativeWindowObserver, - observers_, - OnRendererUnresponsive()); + + if (!HasModalDialog()) + FOR_EACH_OBSERVER(NativeWindowObserver, + observers_, + OnRendererUnresponsive()); } void NativeWindow::RendererResponsive(content::WebContents* source) {