Index: chrome/browser/hang_monitor/hung_window_detector.cc |
=================================================================== |
--- chrome/browser/hang_monitor/hung_window_detector.cc (revision 98641) |
+++ chrome/browser/hang_monitor/hung_window_detector.cc (working copy) |
@@ -59,6 +59,14 @@ |
EnumChildWindows(top_level_window_, ChildWndEnumProc, |
reinterpret_cast<LPARAM>(this)); |
+ |
+ // The window shouldn't be disabled unless we're showing a modal dialog. |
+ // If we're not, then reenable the window. |
+ if (!::IsWindowEnabled(top_level_window_) && |
+ !::GetWindow(top_level_window_, GW_ENABLEDPOPUP)) { |
+ ::EnableWindow(top_level_window_, TRUE); |
+ } |
+ |
enumerating_ = false; |
} |