fix crash when default download is canceled
This commit is contained in:
parent
a575192c5f
commit
045e42a10c
1 changed files with 1 additions and 3 deletions
|
@ -296,10 +296,8 @@ void Session::OnDownloadCreated(content::DownloadManager* manager,
|
|||
"will-download",
|
||||
DownloadItem::Create(isolate(), item),
|
||||
api::WebContents::CreateFrom(isolate(), web_contents));
|
||||
if (prevent_default) {
|
||||
if (prevent_default)
|
||||
item->Cancel(true);
|
||||
item->Remove();
|
||||
}
|
||||
}
|
||||
|
||||
void Session::ResolveProxy(const GURL& url, ResolveProxyCallback callback) {
|
||||
|
|
Loading…
Reference in a new issue