Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: chrome/browser/hang_monitor/hung_window_detector.cc

Issue 7812005: Fix unresponsive browser due to a crashed/hung plugin with a modal dialog. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698