From 1967b09ecf28b09636f85a657b4752098467d2b7 Mon Sep 17 00:00:00 2001 From: "mmenke@chromium.org" Date: Tue, 13 Dec 2011 20:34:21 +0000 Subject: No longer preconnect to unsafe ports. As UrlRequests were never allowed to use these ports anyways, this wasn't a security issue, but just doesn't seem like a good idea. BUG=93326 Review URL: http://codereview.chromium.org/8898008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114261 0039d316-1c4b-4281-b951-d872f2087c98 --- net/url_request/url_request_http_job.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'net/url_request/url_request_http_job.cc') diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index 73cf26d..bf3df81 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -165,10 +165,6 @@ URLRequestJob* URLRequestHttpJob::Factory(URLRequest* request, const std::string& scheme) { DCHECK(scheme == "http" || scheme == "https"); - int port = request->url().IntPort(); - if (!IsPortAllowedByDefault(port) && !IsPortAllowedByOverride(port)) - return new URLRequestErrorJob(request, ERR_UNSAFE_PORT); - if (!request->context() || !request->context()->http_transaction_factory()) { NOTREACHED() << "requires a valid context"; -- cgit v1.1