Do not emit did-fail-load for canceled requests
This commit is contained in:
parent
a00c5e3363
commit
ed6213e951
1 changed files with 4 additions and 1 deletions
|
@ -607,7 +607,10 @@ void WebContents::DidFailProvisionalLoad(
|
||||||
bool was_ignored_by_handler) {
|
bool was_ignored_by_handler) {
|
||||||
bool is_main_frame = !render_frame_host->GetParent();
|
bool is_main_frame = !render_frame_host->GetParent();
|
||||||
Emit("did-fail-provisional-load", code, description, url, is_main_frame);
|
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,
|
void WebContents::DidFailLoad(content::RenderFrameHost* render_frame_host,
|
||||||
|
|
Loading…
Reference in a new issue