🐛 Fix #9231: Don't load url when detached.

This commit is contained in:
Vladimir Vainer 2017-06-21 15:17:27 +03:00
parent 8a62d81fc5
commit 42cb3461af
3 changed files with 16 additions and 0 deletions

View file

@ -993,6 +993,10 @@ void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
return;
}
if (guest_delegate_ && !guest_delegate_->Attached()) {
return;
}
content::NavigationController::LoadURLParams params(url);
GURL http_referrer;