diff --git a/cef3/libcef/browser/browser_urlrequest_impl.cc b/cef3/libcef/browser/browser_urlrequest_impl.cc index 01cb62836..dc055619e 100644 --- a/cef3/libcef/browser/browser_urlrequest_impl.cc +++ b/cef3/libcef/browser/browser_urlrequest_impl.cc @@ -347,7 +347,10 @@ CefURLFetcherDelegate::~CefURLFetcherDelegate() { void CefURLFetcherDelegate::OnURLFetchComplete( const net::URLFetcher* source) { - context_->OnComplete(); + // Complete asynchronously so as not to delete the URLFetcher while it's still + // in the call stack. + MessageLoop::current()->PostTask(FROM_HERE, + base::Bind(&CefBrowserURLRequest::Context::OnComplete, context_)); } void CefURLFetcherDelegate::OnURLFetchDownloadProgress(