Detect unresponsive window when quitting.
Preivously this is disabled because quitting multiple windows could bring up the unresponsive dialog, but since we now have increased the unresponsive time limitto 5s, this is not needed anymore and could cause confusions. Fixes #17.
This commit is contained in:
parent
cca0d8d583
commit
b975d4c41f
1 changed files with 1 additions and 2 deletions
|
@ -313,8 +313,7 @@ void NativeWindow::CloseWebContents() {
|
|||
// not closed in 5000ms, in this way we can quickly show the unresponsive
|
||||
// dialog when the window is busy executing some script withouth waiting for
|
||||
// the unresponsive timeout.
|
||||
if (!Browser::Get()->is_quiting() &&
|
||||
window_unresposive_closure_.IsCancelled())
|
||||
if (window_unresposive_closure_.IsCancelled())
|
||||
ScheduleUnresponsiveEvent(5000);
|
||||
|
||||
if (web_contents->NeedToFireBeforeUnload())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue