by jfox » Fri Aug 21, 2020 1:54 pm
My understanding of the way downloads work is that when CefBrowserHost::StartDownload is called, the code defined in DownloadHandler::OnBeforeDownload is executed, but the download shouldn't actually start until CefBeforeDownloadCallback::Continue is called. My code calls Continue outside of the OnBeforeDownload function after some additional processing is done, but I'm noticing that DownloadHandler::OnDownloadUpdated is being called before Continue is ever called, and the update info indicates that the download is in progress and has already read many bytes before Continue is ever called. This is problematic for us because we're relying on some additional processing to be done before the download actually starts. Is this behavior intentional, or this an issue with CEF?