browser: make destruction of webContents async
This commit is contained in:
parent
ca7ca3ba1c
commit
f974a6bda9
5 changed files with 21 additions and 9 deletions
|
@ -173,7 +173,7 @@ void Window::WillDestroyNativeObject() {
|
|||
}
|
||||
|
||||
void Window::OnWindowClosed() {
|
||||
api_web_contents_->DestroyWebContents();
|
||||
api_web_contents_->DestroyWebContents(true /* async */);
|
||||
|
||||
RemoveFromWeakMap();
|
||||
window_->RemoveObserver(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue