Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1599)

Unified Diff: content/browser/loader/resource_loader.cc

Issue 1903133004: Report invalid URLs as ERR_INVALID_URL rather than ERR_ABORTED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_loader.cc
diff --git a/content/browser/loader/resource_loader.cc b/content/browser/loader/resource_loader.cc
index 40e1f2a60746f96da3530f967c37a3dd82ee3edf..9e1b0d683624bd37080acee3ae5412bedfb98c56 100644
--- a/content/browser/loader/resource_loader.cc
+++ b/content/browser/loader/resource_loader.cc
@@ -267,7 +267,7 @@ void ResourceLoader::OnReceivedRedirect(net::URLRequest* unused,
<< redirect_info.new_url.possibly_invalid_spec();
// Tell the renderer that this request was disallowed.
- Cancel();
+ CancelWithError(net::ERR_INVALID_URL);
return;
}

Powered by Google App Engine
This is Rietveld 408576698