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

Issue 15665006: Allow specifying proxy scripts using file:// URLs. (Closed)

Created:
7 years, 6 months ago by pauljensen
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Allow specifying proxy scripts using file:, data:, and ftp: URLs. This addresses a regression from r198915. BUG=243974 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203074

Patch Set 1 #

Patch Set 2 : Add data: URL support #

Patch Set 3 : Add ftp: URL support #

Total comments: 1

Patch Set 4 : Fix indent #

Patch Set 5 : Add test. #

Total comments: 11

Patch Set 6 : Address comments. #

Patch Set 7 : Look for ERR_ string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -0 lines) Patch
M chrome/browser/io_thread.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/net/proxy_browsertest.cc View 1 2 3 4 5 6 2 chunks +128 lines, -0 lines 0 comments Download
A chrome/test/data/bad_server.pac View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
pauljensen
Matt, PTAL. I plan to add a regression test for this bug also, do you ...
7 years, 6 months ago (2013-05-28 14:59:28 UTC) #1
mmenke
On 2013/05/28 14:59:28, pauljensen wrote: > Matt, PTAL. I plan to add a regression test ...
7 years, 6 months ago (2013-05-28 15:11:55 UTC) #2
eroman
Will the proxy script fetching support FTP in the new mode? (it should). Regarding tests, ...
7 years, 6 months ago (2013-05-28 17:00:11 UTC) #3
pauljensen
Matt, I added the FTP support and manually verified PAC scripts can be fetched via ...
7 years, 6 months ago (2013-05-28 18:44:05 UTC) #4
mmenke
Ok, let's land the tests in a followup CL. LGTM. https://codereview.chromium.org/15665006/diff/12001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/15665006/diff/12001/chrome/browser/io_thread.cc#newcode570 ...
7 years, 6 months ago (2013-05-28 18:50:55 UTC) #5
eroman
lgtm. minor nit -- in the CL description you mention data:// URL. Suggest changing to ...
7 years, 6 months ago (2013-05-28 18:56:03 UTC) #6
pauljensen
James, PTAL at this small CL to fix a Pri-1 bug. Current reviewers agreed that ...
7 years, 6 months ago (2013-05-28 19:14:36 UTC) #7
James Hawkins
On 2013/05/28 19:14:36, pauljensen wrote: > James, PTAL at this small CL to fix a ...
7 years, 6 months ago (2013-05-28 19:19:49 UTC) #8
pauljensen
Matt & Eric, I added tests for fetching PAC scripts via HTTP, FTP, file:// and ...
7 years, 6 months ago (2013-05-29 17:15:10 UTC) #9
James Hawkins
Thanks for writing the test; I appreciate it. LGTM with optional nit. https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc File chrome/browser/net/proxy_browsertest.cc ...
7 years, 6 months ago (2013-05-29 17:24:33 UTC) #10
eroman
thanks for the test. still lgtm https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc File chrome/browser/net/proxy_browsertest.cc (right): https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc#newcode134 chrome/browser/net/proxy_browsertest.cc:134: const char *expected_title ...
7 years, 6 months ago (2013-05-29 17:45:52 UTC) #11
mmenke
Seems to me like one potential problem with this approach is that if we ever ...
7 years, 6 months ago (2013-05-29 18:06:25 UTC) #12
eroman
The tests should be regression-proof. I like the technique that Paul is using. ERR_PROXY_CONNECTION_FAILED is ...
7 years, 6 months ago (2013-05-29 18:20:42 UTC) #13
mmenke
On 2013/05/29 18:20:42, eroman wrote: > The tests should be regression-proof. I like the technique ...
7 years, 6 months ago (2013-05-29 18:23:06 UTC) #14
eroman
I am not too concerned about that, since each test involves a separate browser launch, ...
7 years, 6 months ago (2013-05-29 18:32:12 UTC) #15
mmenke
On 2013/05/29 18:32:12, eroman wrote: > I am not too concerned about that, since each ...
7 years, 6 months ago (2013-05-29 18:43:32 UTC) #16
pauljensen
https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc File chrome/browser/net/proxy_browsertest.cc (right): https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc#newcode127 chrome/browser/net/proxy_browsertest.cc:127: const base::FilePath::CharType kPACScript[] = FILE_PATH_LITERAL( On 2013/05/29 17:24:33, James ...
7 years, 6 months ago (2013-05-29 18:45:14 UTC) #17
mmenke
https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc File chrome/browser/net/proxy_browsertest.cc (right): https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc#newcode146 chrome/browser/net/proxy_browsertest.cc:146: " 'Unable to connect to the proxy server') >= ...
7 years, 6 months ago (2013-05-29 18:47:51 UTC) #18
mmenke
https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc File chrome/browser/net/proxy_browsertest.cc (right): https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc#newcode146 chrome/browser/net/proxy_browsertest.cc:146: " 'Unable to connect to the proxy server') >= ...
7 years, 6 months ago (2013-05-29 18:50:28 UTC) #19
pauljensen
https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc File chrome/browser/net/proxy_browsertest.cc (right): https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc#newcode146 chrome/browser/net/proxy_browsertest.cc:146: " 'Unable to connect to the proxy server') >= ...
7 years, 6 months ago (2013-05-29 18:54:51 UTC) #20
mmenke
On 2013/05/29 18:54:51, pauljensen wrote: > https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc > File chrome/browser/net/proxy_browsertest.cc (right): > > https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc#newcode146 > ...
7 years, 6 months ago (2013-05-29 18:56:46 UTC) #21
mmenke
On 2013/05/29 18:56:46, mmenke wrote: > On 2013/05/29 18:54:51, pauljensen wrote: > > > https://codereview.chromium.org/15665006/diff/32002/chrome/browser/net/proxy_browsertest.cc ...
7 years, 6 months ago (2013-05-29 18:57:40 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/15665006/51001
7 years, 6 months ago (2013-05-29 19:05:58 UTC) #23
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=155432
7 years, 6 months ago (2013-05-30 01:22:52 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/15665006/51001
7 years, 6 months ago (2013-05-30 03:02:53 UTC) #25
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 05:00:06 UTC) #26
Message was sent while issue was closed.
Change committed as 203074

Powered by Google App Engine
This is Rietveld 408576698