projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a575192
)
fix crash when default download is canceled
author
Robo
<hop2deep@gmail.com>
Mon, 1 Feb 2016 18:56:37 +0000
(
00:26
+0530)
committer
Robo
<hop2deep@gmail.com>
Mon, 1 Feb 2016 18:56:37 +0000
(
00:26
+0530)
atom/browser/api/atom_api_session.cc
patch
|
blob
|
history
diff --git
a/atom/browser/api/atom_api_session.cc
b/atom/browser/api/atom_api_session.cc
index
b903240
..
37909c5
100644
(file)
--- a/
atom/browser/api/atom_api_session.cc
+++ b/
atom/browser/api/atom_api_session.cc
@@
-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) {