Merge pull request #9819 from ferreus/dev/vladimir_fix9231

🐛 Fix #9231: Don't load url when detached.
This commit is contained in:
Cheng Zhao 2017-07-19 11:15:30 +09:00 committed by GitHub
commit 52c6c7e676
3 changed files with 17 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_->IsAttached()) {
return;
}
content::NavigationController::LoadURLParams params(url);
GURL http_referrer;