destroy new window webContents asynchronously
This commit is contained in:
parent
5e976be43b
commit
c68f41b8d8
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ void WebContents::AddNewContents(content::WebContents* source,
|
|||
if (Emit("-add-new-contents", api_web_contents, disposition, user_gesture,
|
||||
initial_rect.x(), initial_rect.y(), initial_rect.width(),
|
||||
initial_rect.height())) {
|
||||
api_web_contents->DestroyWebContents(false /* async */);
|
||||
api_web_contents->DestroyWebContents(true /* async */);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue