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

Issue 10792008: `chrome-extension` resources should bypass Content Security Policy. (Closed)

Created:
8 years, 5 months ago by Mike West
Modified:
8 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

`chrome-extension` resources should bypass Content Security Policy. The Content Security Policy specification[1] notes that "Enforcing a CSP policy should not interfere with the operation of user-supplied scripts such as third-party user-agent add-ons and JavaScript bookmarklets." To that end, this CL allows `chrome-extension` resources to bypass their containing document's policy, meaning that (for example) `chrome-extension://[ID]/image.png` can be injected into a page, even if that page has an `img-src 'none';` CSP directive. [1]: https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html#processing-model BUG=133223 TBR=thakis@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149627

Patch Set 1 : Test. #

Patch Set 2 : Rebased onto ToT. #

Patch Set 3 : Bad rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M chrome/browser/extensions/extension_resource_request_policy_apitest.cc View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/accessible_resource_with_csp.html View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
Mike West
Hi Aaron, Adam, I'd appreciate you both taking a look at this CL. I think ...
8 years, 5 months ago (2012-07-15 18:38:08 UTC) #1
abarth-chromium
I didn't review the tests, but the code change LGTM. It's true that this weakens ...
8 years, 5 months ago (2012-07-16 01:16:48 UTC) #2
jschuh
Stupid question, but what happens with script injected into the origin of an extension or ...
8 years, 5 months ago (2012-07-16 04:09:59 UTC) #3
abarth-chromium
On 2012/07/16 04:09:59, Justin Schuh wrote: > Stupid question, but what happens with script injected ...
8 years, 5 months ago (2012-07-16 04:15:50 UTC) #4
Tom Sepez
Mike, it looks like this policy will be applied to all pages. I think that's ...
8 years, 5 months ago (2012-07-16 18:35:27 UTC) #5
Mike West
On 2012/07/16 18:35:27, Tom Sepez wrote: > Mike, it looks like this policy will be ...
8 years, 5 months ago (2012-07-17 02:28:59 UTC) #6
Mike West
Ideally, I'd like this to be in for M22, which, in theory, means it has ...
8 years, 5 months ago (2012-07-19 05:01:06 UTC) #7
Mike West
On 2012/07/19 05:01:06, Mike West (chromium) wrote: > Ideally, I'd like this to be in ...
8 years, 5 months ago (2012-07-26 07:12:08 UTC) #8
Tom Sepez
Sorry to take so long to get back to you. I'm of the opinion that ...
8 years, 5 months ago (2012-07-26 17:50:25 UTC) #9
Use mkwst_at_chromium.org plz.
On 2012/07/26 17:50:25, Tom Sepez wrote: > Sorry to take so long to get back ...
8 years, 5 months ago (2012-07-26 18:35:58 UTC) #10
Aaron Boodman
Apologies. So we used to do something like this actually, and I reverted it after ...
8 years, 4 months ago (2012-07-30 11:42:45 UTC) #11
Mike West
On 2012/07/30 11:42:45, Aaron Boodman wrote: > Apologies. > > So we used to do ...
8 years, 4 months ago (2012-07-30 12:19:51 UTC) #12
Mike West
On 2012/07/16 18:35:27, Tom Sepez wrote: > For example, if I have a stupid extension ...
8 years, 4 months ago (2012-07-30 14:05:25 UTC) #13
Tom Sepez
SGTM.
8 years, 4 months ago (2012-07-30 16:44:28 UTC) #14
Mike West
On 2012/07/30 16:44:28, Tom Sepez wrote: > SGTM. A fix for https://code.google.com/p/chromium/issues/detail?id=139592 just landed. I ...
8 years, 4 months ago (2012-08-02 11:20:44 UTC) #15
Aaron Boodman
LGTM
8 years, 4 months ago (2012-08-02 11:33:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10792008/28002
8 years, 4 months ago (2012-08-02 13:08:56 UTC) #17
commit-bot: I haz the power
Presubmit check for 10792008-28002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-02 13:09:00 UTC) #18
Mike West
On 2012/08/02 13:09:00, I haz the power (commit-bot) wrote: > Presubmit check for 10792008-28002 failed ...
8 years, 4 months ago (2012-08-02 13:12:46 UTC) #19
Mike West
Nico, through the magic of picking a name from chrome/OWNERS at random, I've chosen you ...
8 years, 4 months ago (2012-08-02 13:14:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10792008/28002
8 years, 4 months ago (2012-08-02 13:14:38 UTC) #21
commit-bot: I haz the power
Change committed as 149627
8 years, 4 months ago (2012-08-02 15:00:24 UTC) #22
Nico
8 years, 4 months ago (2012-08-02 15:05:32 UTC) #23
lgtm stamp

Powered by Google App Engine
This is Rietveld 408576698