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

Issue 7086003: Apply content-security-policy to chrome://plugins page. This involves (Closed)

Created:
9 years, 7 months ago by Tom Sepez
Modified:
9 years, 6 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Apply content-security-policy to chrome://plugins page. This involves converting all inline javascript to external .js files, since CSP can't determine whether inline script is legitimate or an XSS. We move the jstemplate_compiled.js file to the share resources directory, since several WEBUI components will need this, and update the compile.py script that produces it to write to this new location. We move the javascript out of plugins.html to plugins.js; note that the sections at line 130 and line 251 are new. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87358

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -324 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/plugins.html View 1 2 3 4 6 chunks +21 lines, -235 lines 0 comments Download
A chrome/browser/resources/plugins.js View 1 2 3 1 chunk +255 lines, -0 lines 0 comments Download
A chrome/browser/resources/shared/js/jstemplate_compiled.js View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/shared_resources.grd View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/plugins_ui.cc View 1 2 3 4 3 chunks +51 lines, -65 lines 0 comments Download
M chrome/common/common_resources.grd View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/third_party/jstemplate/README.chromium View 1 2 3 4 5 1 chunk +11 lines, -4 lines 0 comments Download
M chrome/third_party/jstemplate/compile.py View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
D chrome/third_party/jstemplate/jstemplate_compiled.js View 1 2 3 4 1 chunk +0 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Tom Sepez
Needs another reviewer. OWNERS file says arv, and he's not around. Thoughts?
9 years, 7 months ago (2011-05-27 18:42:38 UTC) #1
abarth-chromium
We should figure out who should review this patch with arv out of pocket. Maybe ...
9 years, 7 months ago (2011-05-27 18:48:06 UTC) #2
Tom Sepez
On 2011/05/27 18:48:06, abarth wrote: > We should figure out who should review this patch ...
9 years, 7 months ago (2011-05-27 18:53:02 UTC) #3
Tom Sepez
+tfarina for plugins.html
9 years, 7 months ago (2011-05-27 19:09:20 UTC) #4
Evan Martin
http://codereview.chromium.org/7086003/diff/3003/chrome/third_party/jstemplate/README.chromium File chrome/third_party/jstemplate/README.chromium (right): http://codereview.chromium.org/7086003/diff/3003/chrome/third_party/jstemplate/README.chromium#newcode5 chrome/third_party/jstemplate/README.chromium:5: so as to allow this to reside in the ...
9 years, 7 months ago (2011-05-27 19:13:24 UTC) #5
Tom Sepez
On 2011/05/27 19:13:24, Evan Martin wrote: > http://codereview.chromium.org/7086003/diff/3003/chrome/third_party/jstemplate/README.chromium > File chrome/third_party/jstemplate/README.chromium (right): > > http://codereview.chromium.org/7086003/diff/3003/chrome/third_party/jstemplate/README.chromium#newcode5 ...
9 years, 7 months ago (2011-05-27 19:16:27 UTC) #6
tfarina
bauerb or viettrungluu are better reviewers for plugins.html than me.
9 years, 7 months ago (2011-05-27 19:20:26 UTC) #7
Tom Sepez
+bauerb +viettrungluu as reviewers.
9 years, 7 months ago (2011-05-27 19:21:45 UTC) #8
Bernhard Bauer
LGTM. http://codereview.chromium.org/7086003/diff/3003/chrome/browser/resources/plugins.html File chrome/browser/resources/plugins.html (right): http://codereview.chromium.org/7086003/diff/3003/chrome/browser/resources/plugins.html#newcode9 chrome/browser/resources/plugins.html:9: <meta http-equiv="X-WebKit-CSP" content="object-src 'none'; script-src chrome://resources 'self' 'unsafe-eval'"> ...
9 years, 7 months ago (2011-05-27 20:01:29 UTC) #9
Tom Sepez
On 2011/05/27 20:01:29, Bernhard Bauer wrote: > LGTM. > > http://codereview.chromium.org/7086003/diff/3003/chrome/browser/resources/plugins.html > File chrome/browser/resources/plugins.html (right): ...
9 years, 7 months ago (2011-05-27 20:07:36 UTC) #10
Tom Sepez
Adam, you ok with this now? Evan, you ok with what I said in response ...
9 years, 6 months ago (2011-05-31 19:02:16 UTC) #11
Evan Martin
On 2011/05/31 19:02:16, Tom Sepez wrote: > Adam, you ok with this now? > Evan, ...
9 years, 6 months ago (2011-05-31 19:12:08 UTC) #12
abarth-chromium
On 2011/05/31 19:02:16, Tom Sepez wrote: > Adam, you ok with this now? Yep. I'm ...
9 years, 6 months ago (2011-05-31 19:17:06 UTC) #13
Tom Sepez
> I think I would feel better if this just wrote to stdout and the ...
9 years, 6 months ago (2011-05-31 19:47:14 UTC) #14
Evan Martin
9 years, 6 months ago (2011-05-31 20:37:11 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld 408576698