Allowing destroying a closed window
This commit is contained in:
parent
afa9f30aac
commit
eb370ba22a
2 changed files with 5 additions and 1 deletions
|
@ -498,6 +498,9 @@ void NativeWindow::RenderViewCreated(
|
|||
}
|
||||
|
||||
void NativeWindow::CloseContents(content::WebContents* source) {
|
||||
if (!inspectable_web_contents_)
|
||||
return;
|
||||
|
||||
inspectable_web_contents_->GetView()->SetDelegate(nullptr);
|
||||
inspectable_web_contents_ = nullptr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue