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

Issue 7873007: Restricting redirects to chrome: (Closed)

Created:
9 years, 3 months ago by kenrb
Modified:
6 years, 9 months ago
Reviewers:
jschuh, abarth-chromium
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Ben Goodger (Google), brettw, darin (slow to review), sky
Visibility:
Public.

Description

Restrict child processes from redirecting to chrome: URLs. BUG=95374 TEST=content_unittests

Patch Set 1 #

Total comments: 7

Patch Set 2 : Changing child process security policy to restrict chrome: redirects #

Patch Set 3 : Improving that path so it doesn't break things #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -2 lines) Patch
M content/browser/child_process_security_policy.h View 1 2 3 chunks +18 lines, -0 lines 1 comment Download
M content/browser/child_process_security_policy.cc View 1 2 4 chunks +25 lines, -1 line 2 comments Download
M content/browser/child_process_security_policy_unittest.cc View 1 2 2 chunks +35 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
abarth-chromium
http://codereview.chromium.org/7873007/diff/1/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/7873007/diff/1/net/url_request/url_request_http_job.cc#newcode1011 net/url_request/url_request_http_job.cc:1011: if (location.SchemeIs("chrome")) The net module shouldn't really know anything ...
9 years, 3 months ago (2011-09-12 19:51:21 UTC) #1
kenrb
http://codereview.chromium.org/7873007/diff/1/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/7873007/diff/1/net/url_request/url_request_http_job.cc#newcode1011 net/url_request/url_request_http_job.cc:1011: if (location.SchemeIs("chrome")) On 2011/09/12 19:51:21, abarth wrote: > The ...
9 years, 3 months ago (2011-09-12 20:05:05 UTC) #2
rvargas (doing something else)
http://codereview.chromium.org/7873007/diff/1/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/7873007/diff/1/net/url_request/url_request_http_job.cc#newcode1014 net/url_request/url_request_http_job.cc:1014: if (!URLRequest::IsHandledURL(location)) On 2011/09/12 20:05:05, kenrb wrote: > On ...
9 years, 3 months ago (2011-09-12 21:07:14 UTC) #3
kenrb
http://codereview.chromium.org/7873007/diff/1/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/7873007/diff/1/net/url_request/url_request_http_job.cc#newcode1014 net/url_request/url_request_http_job.cc:1014: if (!URLRequest::IsHandledURL(location)) On 2011/09/12 21:07:14, rvargas wrote: > On ...
9 years, 3 months ago (2011-09-13 00:27:52 UTC) #4
jam
I'm not that familiar with this code, so I defer to other owners who are.
9 years, 3 months ago (2011-09-15 20:47:07 UTC) #5
Avi (use Gerrit)
On 2011/09/15 20:47:07, John Abd-El-Malek wrote: > I'm not that familiar with this code, so ...
9 years, 3 months ago (2011-09-15 20:51:21 UTC) #6
kenrb
On 2011/09/15 20:51:21, Avi wrote: > On 2011/09/15 20:47:07, John Abd-El-Malek wrote: > > I'm ...
9 years, 3 months ago (2011-09-15 21:09:09 UTC) #7
kenrb
I've added brettw, sky, darin and ben to the cc: line, who are all OWNERS ...
9 years, 3 months ago (2011-09-17 02:29:08 UTC) #8
darin (slow to review)
+abarth On Fri, Sep 16, 2011 at 7:29 PM, <kenrb@chromium.org> wrote: > I've added brettw, ...
9 years, 3 months ago (2011-09-19 06:16:56 UTC) #9
abarth-chromium
It's hard to understand what you're trying to achieve with this patch because the description ...
9 years, 3 months ago (2011-09-19 06:46:39 UTC) #10
abarth-chromium
From reading the bug, it sounds like you need to expose WebCore::SecurityOrigin::canDisplay in WebKit::WebSecurityOrigin and ...
9 years, 3 months ago (2011-09-19 06:53:04 UTC) #11
kenrb
On 2011/09/19 06:53:04, abarth wrote: > From reading the bug, it sounds like you need ...
9 years, 3 months ago (2011-09-19 16:02:30 UTC) #12
abarth-chromium
In most situations, we route redirects through the renderer, for example to check for mixed ...
9 years, 3 months ago (2011-09-19 17:25:20 UTC) #13
kenrb
Yes, it does, that's what I meant by the generic code path in the renderer. ...
9 years, 3 months ago (2011-09-19 18:10:11 UTC) #14
abarth-chromium
Can this same approach be used to redirect to a file URL? If so, we ...
9 years, 3 months ago (2011-09-19 18:15:31 UTC) #15
kenrb
file: redirects are not blocked at that layer. They are blocked in two places within ...
9 years, 3 months ago (2011-09-19 18:48:24 UTC) #16
abarth-chromium
On Mon, Sep 19, 2011 at 11:48 AM, <kenrb@chromium.org> wrote: > file: redirects are not ...
9 years, 3 months ago (2011-09-19 19:01:16 UTC) #17
kenrb
9 years, 3 months ago (2011-09-19 19:07:18 UTC) #18
On 2011/09/19 19:01:16, abarth wrote:
> On Mon, Sep 19, 2011 at 11:48 AM,  <mailto:kenrb@chromium.org> wrote:
> > file: redirects are not blocked at that layer. They are blocked in two
> > places
> > within Chromium -- in ChildProcessSecurityPolicy, and in URLRequestHttpJob
> > at
> > the net layer (after the renderer has processed the redirect).
> 
> How does that work in Safari, for example, which doesn't link in
> either of those two objects?
> 

Lacking both a Mac and access to Safari source code, I find it difficult to
answer that question.

Powered by Google App Engine
This is Rietveld 408576698