destroy new window webContents asynchronously

This commit is contained in:
deepak1556 2017-04-19 21:54:04 +05:30 committed by Cheng Zhao
parent 5e976be43b
commit c68f41b8d8

View file

@ -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 */);
}
}