diff --git a/browser/native_window.cc b/browser/native_window.cc index 0db2cfd99403..e8c337c01fe9 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) {