Avoid destorying api::WebContents for twice
This commit is contained in:
parent
af62b7b5c9
commit
bb42c2c7b6
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ void WebContents::WillAttach(content::WebContents* embedder_web_contents,
|
|||
}
|
||||
|
||||
void WebContents::Destroy() {
|
||||
if (is_guest()) {
|
||||
if (is_guest() && managed_web_contents()) {
|
||||
// When force destroying the "destroyed" event is not emitted.
|
||||
WebContentsDestroyed();
|
||||
|
||||
|
|
Loading…
Reference in a new issue