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

Issue 1903133004: Report invalid URLs as ERR_INVALID_URL rather than ERR_ABORTED (Closed)

Created:
4 years, 8 months ago by davidben
Modified:
4 years, 3 months ago
Reviewers:
nasko
CC:
chromium-reviews, loading-reviews_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report invalid URLs as ERR_INVALID_URL rather than ERR_ABORTED. Before feeding a URL into the net stack, we check ChildProcessSecurityPolicy. This means that URLRequest's internal is_valid check hits the illegal URL codepath which currently reports ERR_ABORTED. ERR_ABORTED is used for downloads and canceling requests and gives no UI feedback. Instead, map those failures to ERR_INVALID_URL (or ERR_ACCESS_DENIED if the cause was illegal file upload data). BUG=604779 TEST=Navigating to https://davidben.net/invalid_redirect gives an error page.

Patch Set 1 #

Patch Set 2 : Add a test #

Total comments: 10

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -30 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 8 chunks +32 lines, -24 lines 1 comment Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 4 chunks +37 lines, -5 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (3 generated)
davidben
I think this is probably the best way to resolve this issue? Adding nasko to ...
4 years, 8 months ago (2016-04-20 22:10:47 UTC) #3
mmenke
https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode228 content/browser/loader/resource_dispatcher_host_impl.cc:228: void AbortRequestBeforeItStarts(ResourceMessageFilter* filter, Abort -> Fail? https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode310 content/browser/loader/resource_dispatcher_host_impl.cc:310: return ...
4 years, 8 months ago (2016-04-21 15:28:15 UTC) #4
davidben
https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode228 content/browser/loader/resource_dispatcher_host_impl.cc:228: void AbortRequestBeforeItStarts(ResourceMessageFilter* filter, On 2016/04/21 15:28:15, mmenke wrote: > ...
4 years, 8 months ago (2016-04-21 19:00:25 UTC) #5
mmenke
https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode310 content/browser/loader/resource_dispatcher_host_impl.cc:310: return net::ERR_INVALID_URL; On 2016/04/21 19:00:25, davidben wrote: > On ...
4 years, 8 months ago (2016-04-21 19:10:05 UTC) #6
davidben
https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode310 content/browser/loader/resource_dispatcher_host_impl.cc:310: return net::ERR_INVALID_URL; On 2016/04/21 19:10:05, mmenke wrote: > On ...
4 years, 8 months ago (2016-04-21 19:20:05 UTC) #7
mmenke
On 2016/04/21 19:20:05, davidben wrote: > https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc > File content/browser/loader/resource_dispatcher_host_impl.cc (right): > > https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode310 > ...
4 years, 8 months ago (2016-04-21 19:29:27 UTC) #8
davidben
On 2016/04/21 19:29:27, mmenke wrote: > On 2016/04/21 19:20:05, davidben wrote: > > > https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc ...
4 years, 8 months ago (2016-04-21 19:37:06 UTC) #9
mmenke
On 2016/04/21 19:37:06, davidben wrote: > On 2016/04/21 19:29:27, mmenke wrote: > > On 2016/04/21 ...
4 years, 8 months ago (2016-04-21 19:41:07 UTC) #10
mmenke
On 2016/04/21 19:41:07, mmenke wrote: > On 2016/04/21 19:37:06, davidben wrote: > > On 2016/04/21 ...
4 years, 8 months ago (2016-04-21 19:42:24 UTC) #11
nasko
https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode310 content/browser/loader/resource_dispatcher_host_impl.cc:310: return net::ERR_INVALID_URL; On 2016/04/21 19:20:04, davidben wrote: > On ...
4 years, 8 months ago (2016-04-21 20:30:01 UTC) #12
davidben
https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1903133004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode310 content/browser/loader/resource_dispatcher_host_impl.cc:310: return net::ERR_INVALID_URL; On 2016/04/21 20:30:00, nasko (slow) wrote: > ...
4 years, 7 months ago (2016-04-29 21:54:40 UTC) #13
davidben
On 2016/04/21 19:41:07, mmenke wrote: > We'd be displaying the invalid URL in the omnibox ...
4 years, 7 months ago (2016-04-29 22:09:46 UTC) #14
mmenke
On 2016/04/29 22:09:46, davidben (slow) wrote: > On 2016/04/21 19:41:07, mmenke wrote: > > We'd ...
4 years, 7 months ago (2016-05-02 17:06:01 UTC) #15
davidben
On 2016/05/02 17:06:01, mmenke wrote: > On 2016/04/29 22:09:46, davidben (slow) wrote: > > On ...
4 years, 7 months ago (2016-05-02 17:57:06 UTC) #16
mmenke
On 2016/05/02 17:57:06, davidben (slow) wrote: > On 2016/05/02 17:06:01, mmenke wrote: > > On ...
4 years, 7 months ago (2016-05-02 19:01:26 UTC) #17
davidben
On 2016/05/02 19:01:26, mmenke wrote: > On 2016/05/02 17:57:06, davidben (slow) wrote: > > On ...
4 years, 7 months ago (2016-05-02 19:27:20 UTC) #18
mmenke
On 2016/05/02 19:27:20, davidben (slow) wrote: > On 2016/05/02 19:01:26, mmenke wrote: > > On ...
4 years, 7 months ago (2016-05-02 19:36:09 UTC) #19
mmenke
Can we close this CL? Going to go ahead and remove myself from it - ...
4 years, 3 months ago (2016-09-08 18:07:05 UTC) #20
davidben
4 years, 3 months ago (2016-09-08 19:10:14 UTC) #22
On 2016/09/08 18:07:05, mmenke wrote:
> Can we close this CL?  Going to go ahead and remove myself from it - I just
have
> too many dead CLs on my list, making keeping track of the non-dead ones more
> painful.  Feel free to add my back if needed.

Yeah, let's close it. It seems the proper fix will be different anyway.

Powered by Google App Engine
This is Rietveld 408576698