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:
a00c5e3
)
Do not emit did-fail-load for canceled requests
author
Cheng Zhao
<zcbenz@gmail.com>
Thu, 23 Jun 2016 11:32:19 +0000
(20:32 +0900)
committer
Cheng Zhao
<zcbenz@gmail.com>
Thu, 23 Jun 2016 11:32:19 +0000
(20:32 +0900)
atom/browser/api/atom_api_web_contents.cc
patch
|
blob
|
history
diff --git
a/atom/browser/api/atom_api_web_contents.cc
b/atom/browser/api/atom_api_web_contents.cc
index
58b6a47
..
45719d9
100644
(file)
--- a/
atom/browser/api/atom_api_web_contents.cc
+++ b/
atom/browser/api/atom_api_web_contents.cc
@@
-607,7
+607,10
@@
void WebContents::DidFailProvisionalLoad(
bool was_ignored_by_handler) {
bool is_main_frame = !render_frame_host->GetParent();
Emit("did-fail-provisional-load", code, description, url, is_main_frame);
- Emit("did-fail-load", code, description, url, is_main_frame);
+
+ // Do not emit "did-fail-load" for canceled requests.
+ if (code != net::ERR_ABORTED)
+ Emit("did-fail-load", code, description, url, is_main_frame);
}
void WebContents::DidFailLoad(content::RenderFrameHost* render_frame_host,