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

Issue 10855122: Whitelisting `127.0.0.1` and `localhost` for HTTP in extensions' CSP. (Closed)

Created:
8 years, 4 months ago by Mike West
Modified:
8 years, 2 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Whitelisting `127.0.0.1` and `localhost` for HTTP in extensions' CSP. BUG=140187 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151470

Patch Set 1 #

Total comments: 1

Patch Set 2 : Less stupid patch. #

Total comments: 2

Patch Set 3 : Second pass. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M chrome/common/extensions/csp_validator.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/csp_validator_unittest.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/extensions/contentSecurityPolicy.html View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/articles/contentSecurityPolicy.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/static/contentSecurityPolicy.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Mike West
Hi Adam and Mihai! Would you mind taking a look at this CL? It whitelists ...
8 years, 4 months ago (2012-08-13 10:52:22 UTC) #1
levin
http://codereview.chromium.org/10855122/diff/1/chrome/common/extensions/csp_validator.cc File chrome/common/extensions/csp_validator.cc (right): http://codereview.chromium.org/10855122/diff/1/chrome/common/extensions/csp_validator.cc#newcode50 chrome/common/extensions/csp_validator.cc:50: StartsWithASCII(source, "http://localhost", true) || Does this allow http://localhost.mydomain.com/.... ? ...
8 years, 4 months ago (2012-08-13 11:07:23 UTC) #2
Mike West
On 2012/08/13 11:07:23, levin wrote: > http://codereview.chromium.org/10855122/diff/1/chrome/common/extensions/csp_validator.cc > File chrome/common/extensions/csp_validator.cc (right): > > http://codereview.chromium.org/10855122/diff/1/chrome/common/extensions/csp_validator.cc#newcode50 > ...
8 years, 4 months ago (2012-08-13 11:13:33 UTC) #3
Mike West
On 2012/08/13 11:13:33, Mike West (chromium) wrote: > On 2012/08/13 11:07:23, levin wrote: > > ...
8 years, 4 months ago (2012-08-13 11:14:04 UTC) #4
Mike West
Less stupid patch attached. Thanks!
8 years, 4 months ago (2012-08-13 11:18:46 UTC) #5
abarth-chromium
LGTM (but I'm not an owner) http://codereview.chromium.org/10855122/diff/2002/chrome/common/extensions/csp_validator.cc File chrome/common/extensions/csp_validator.cc (right): http://codereview.chromium.org/10855122/diff/2002/chrome/common/extensions/csp_validator.cc#newcode50 chrome/common/extensions/csp_validator.cc:50: source == "http://localhost" ...
8 years, 4 months ago (2012-08-13 15:50:01 UTC) #6
abarth-chromium
http://codereview.chromium.org/10855122/diff/2002/chrome/common/extensions/csp_validator.cc File chrome/common/extensions/csp_validator.cc (right): http://codereview.chromium.org/10855122/diff/2002/chrome/common/extensions/csp_validator.cc#newcode50 chrome/common/extensions/csp_validator.cc:50: source == "http://localhost" || On 2012/08/13 15:50:01, abarth wrote: ...
8 years, 4 months ago (2012-08-13 15:50:41 UTC) #7
levin
On 2012/08/13 15:50:41, abarth wrote: > http://codereview.chromium.org/10855122/diff/2002/chrome/common/extensions/csp_validator.cc > File chrome/common/extensions/csp_validator.cc (right): > > http://codereview.chromium.org/10855122/diff/2002/chrome/common/extensions/csp_validator.cc#newcode50 > ...
8 years, 4 months ago (2012-08-13 16:12:21 UTC) #8
Aaron Boodman
Please don't forget to put this in the docs. LGTM
8 years, 4 months ago (2012-08-13 18:32:10 UTC) #9
Mike West
On 2012/08/13 18:32:10, Aaron Boodman wrote: > Please don't forget to put this in the ...
8 years, 4 months ago (2012-08-14 11:27:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10855122/4003
8 years, 4 months ago (2012-08-14 11:27:22 UTC) #11
commit-bot: I haz the power
Change committed as 151470
8 years, 4 months ago (2012-08-14 13:48:28 UTC) #12
Mihai Parparita -not on Chrome
Somehow the documentation changes for this made into the M22 branch, but the code is ...
8 years, 2 months ago (2012-10-01 03:23:21 UTC) #13
Mike West
8 years, 2 months ago (2012-10-01 15:05:26 UTC) #14
On 2012/10/01 03:23:21, Mihai Parparita wrote:
> Somehow the documentation changes for this made into the M22 branch, but
> the code is only in the M23 branch (see
> http://stackoverflow.com/questions/12645683). Might be worth merging this
> into M22?

Ugh. That's no good.

The new warning string landed in http://crrev.com/156781; I think we wanted to
merge the docs drive-by back to M22, but merging the code change was premature
(that was http://crrev.com/156957).

I think either way is pretty low-risk, so... *shrug* I'll ask. :)

-mike

Powered by Google App Engine
This is Rietveld 408576698