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

Issue 6871019: Enable (optional) blocking of webrequests in case a PAC script cannot be fetched or is invalid. (Closed)

Created:
9 years, 8 months ago by battre
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Enable (optional) blocking of webrequests in case a PAC script cannot be fetched or is invalid. The optional blocking is currently only exposed to the Proxy Settings API, not to command-line parameters or policies. BUG=79344 TEST=Install the sample proxy extension and enter a non-existing url and a URL that does not point to a valid JavaScript file. In either case, the request should fail. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83882

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Total comments: 12

Patch Set 3 : Addressed comments #

Total comments: 4

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -50 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_preference_api.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_proxy_api_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api_helpers.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_proxy_api_helpers.cc View 1 5 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_proxy_api_helpers_unittest.cc View 1 2 3 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/net/pref_proxy_config_service_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/command_line_pref_store.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/proxy_config_dictionary.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/prefs/proxy_config_dictionary.cc View 5 chunks +24 lines, -7 lines 0 comments Download
M chrome/browser/prefs/proxy_config_dictionary_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/automation_constants.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/automation_constants.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
chrome/common/extensions/docs/examples/extensions/proxy_configuration.zip View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/common/extensions/docs/examples/extensions/proxy_configuration/proxy_form_controller.js View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/experimental.proxy.html View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/proxy/pacdata/test.js View 1 chunk +2 lines, -1 line 0 comments Download
M net/base/net_error_list.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M net/proxy/proxy_config.h View 1 2 3 4 chunks +15 lines, -1 line 0 comments Download
M net/proxy/proxy_config.cc View 1 2 3 6 chunks +10 lines, -4 lines 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 4 chunks +32 lines, -13 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
battre
Hi, @eroman: Could you please have a look whether you like the approach of blocking ...
9 years, 8 months ago (2011-04-15 18:06:22 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/6871019/diff/1/chrome/browser/extensions/extension_proxy_api_helpers.cc File chrome/browser/extensions/extension_proxy_api_helpers.cc (right): http://codereview.chromium.org/6871019/diff/1/chrome/browser/extensions/extension_proxy_api_helpers.cc#newcode87 chrome/browser/extensions/extension_proxy_api_helpers.cc:87: LOG(ERROR) << "'pacScript.mandatory' could not be parsed."; Hm, this ...
9 years, 8 months ago (2011-04-15 18:38:47 UTC) #2
battre
Hi Eric, may I ask you to have a look at this? Thanks, Dominic http://codereview.chromium.org/6871019/diff/1/chrome/browser/extensions/extension_proxy_api_helpers.cc ...
9 years, 8 months ago (2011-04-26 15:31:30 UTC) #3
eroman
> Hi Eric, > may I ask you to have a look at this? Yep, ...
9 years, 8 months ago (2011-04-26 21:19:59 UTC) #4
eroman
Overall the approach looks reasonable, however please introduce a new network error code for this ...
9 years, 8 months ago (2011-04-26 21:47:17 UTC) #5
battre
Thanks for the review. This is the next iteration. http://codereview.chromium.org/6871019/diff/3001/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/6871019/diff/3001/chrome/common/extensions/api/extension_api.json#newcode3998 chrome/common/extensions/api/extension_api.json:3998: ...
9 years, 8 months ago (2011-04-27 17:02:58 UTC) #6
eroman
LGTM. Could you also add a test to proxy_service_unittest.cc which exercises the mandatory PAC boolean? ...
9 years, 7 months ago (2011-05-03 09:45:24 UTC) #7
battre
Thanks for the review. I have created http://crbug.com/81368 for the unit test. http://codereview.chromium.org/6871019/diff/8002/net/proxy/proxy_config.cc File net/proxy/proxy_config.cc ...
9 years, 7 months ago (2011-05-03 09:55:14 UTC) #8
Ryan Hamilton
Just a quick question... When will the API documentation be update here: http://code.google.com/chrome/extensions/experimental.proxy.html
9 years, 7 months ago (2011-05-09 23:01:49 UTC) #9
battre
On 2011/05/09 23:01:49, Ryan Hamilton wrote: > Just a quick question... When will the API ...
9 years, 7 months ago (2011-05-10 11:03:11 UTC) #10
Ryan Hamilton
9 years, 7 months ago (2011-05-10 13:14:12 UTC) #11
Perfect.  thanks!

On Tue, May 10, 2011 at 4:03 AM, <battre@chromium.org> wrote:

> On 2011/05/09 23:01:49, Ryan Hamilton wrote:
>
>> Just a quick question...  When will the API documentation be update here:
>>
>
>  http://code.google.com/chrome/extensions/experimental.proxy.html
>>
>
> I guess, when this is moved to stable.
>
> Check out
> http://code.google.com/chrome/extensions/trunk/experimental.proxy.htmlfornow
> (notice the additional "trunk/" in the path).
>
>
> http://codereview.chromium.org/6871019/
>

Powered by Google App Engine
This is Rietveld 408576698