Bring the close timeout back to 5s.
This commit is contained in:
		
					parent
					
						
							
								3e6df19eff
							
						
					
				
			
			
				commit
				
					
						77d6bb2c3f
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -313,11 +313,11 @@ void NativeWindow::CloseWebContents() { | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   // Assume the window is not responding if it doesn't cancel the close and is
 |   // Assume the window is not responding if it doesn't cancel the close and is
 | ||||||
|   // not closed in 10s, in this way we can quickly show the unresponsive
 |   // not closed in 5s, in this way we can quickly show the unresponsive
 | ||||||
|   // dialog when the window is busy executing some script withouth waiting for
 |   // dialog when the window is busy executing some script withouth waiting for
 | ||||||
|   // the unresponsive timeout.
 |   // the unresponsive timeout.
 | ||||||
|   if (window_unresposive_closure_.IsCancelled()) |   if (window_unresposive_closure_.IsCancelled()) | ||||||
|     ScheduleUnresponsiveEvent(10000); |     ScheduleUnresponsiveEvent(5000); | ||||||
| 
 | 
 | ||||||
|   if (web_contents->NeedToFireBeforeUnload()) |   if (web_contents->NeedToFireBeforeUnload()) | ||||||
|     web_contents->GetRenderViewHost()->FirePageBeforeUnload(false); |     web_contents->GetRenderViewHost()->FirePageBeforeUnload(false); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao