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

Issue 7215034: Apply CSP to chrome: and about: pages (Closed)

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

Description

Apply CSP to chrome: and about: pages Apply Content Security Policy to the chrome://credits page, and the other pages handled by browser_about_handler.cc while we're at it. Move inline JS out of several html files. Move top-level page generation to the about_handler.cc, with tracked_objects.cc/hisogram.cc generating markup fragments to be included. This keeps this files agnostic to CSP issues. Also fix an output encoding issue in the <title> of some pages. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90788

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 2

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+636 lines, -694 lines) Patch
M base/metrics/histogram.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -8 lines 0 comments Download
M base/tracked_objects.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M base/tracked_objects.cc View 1 2 3 4 5 6 7 8 3 chunks +1 line, -34 lines 0 comments Download
M chrome/browser/browser_about_handler.cc View 1 2 3 4 5 6 7 8 9 10 26 chunks +244 lines, -186 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/net/predictor_api.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -5 lines 0 comments Download
A chrome/browser/resources/about_credits.js View 1 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/browser/resources/about_credits.tmpl View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -22 lines 0 comments Download
M chrome/browser/resources/about_credits_entry.tmpl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/about_memory.html View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -79 lines 0 comments Download
A chrome/browser/resources/about_memory.js View 1 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/browser/resources/about_memory_linux.html View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -79 lines 0 comments Download
M chrome/browser/resources/about_memory_mac.html View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -79 lines 0 comments Download
M chrome/browser/resources/about_stats.html View 1 2 3 4 5 6 7 8 5 chunks +20 lines, -197 lines 0 comments Download
A chrome/browser/resources/about_stats.js View 1 1 chunk +202 lines, -0 lines 0 comments Download
M chrome/browser/resources/about_version.html View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/resources/about_version.js View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Tom Sepez
about_credits.tmpl is a problem; too large it seems to review here, but when I generate ...
9 years, 6 months ago (2011-06-24 00:34:50 UTC) #1
abarth-chromium
This patch is great. I'm really glad we're adding these policies to some of this ...
9 years, 6 months ago (2011-06-24 04:45:18 UTC) #2
Tom Sepez
> base/metrics/histogram.cc:1069: output->append(" - " + query); > I can haz XSS? Nearly. Get %3c ...
9 years, 6 months ago (2011-06-24 17:14:22 UTC) #3
Tom Sepez
Adding reviewers. jar for histogram, tracked objects; evan/brett for browser_about_handler, arv for /resources. Thanks heaps.
9 years, 6 months ago (2011-06-24 17:55:54 UTC) #4
Tom Sepez
Adding mark for about_credits templates.
9 years, 6 months ago (2011-06-24 18:02:13 UTC) #5
Evan Martin
I hope you don't mind, I updated your code review to have a one-line summary ...
9 years, 6 months ago (2011-06-24 18:05:32 UTC) #6
Tom Sepez
> curly on same line as if Done.
9 years, 6 months ago (2011-06-24 18:07:27 UTC) #7
abarth-chromium
http://codereview.chromium.org/7215034/diff/7002/base/metrics/histogram.cc File base/metrics/histogram.cc (left): http://codereview.chromium.org/7215034/diff/7002/base/metrics/histogram.cc#oldcode1069 base/metrics/histogram.cc:1069: output->append(" - " + query); On 2011/06/24 18:05:32, Evan ...
9 years, 6 months ago (2011-06-24 18:07:56 UTC) #8
Tom Sepez
adding estade in place of arv.
9 years, 5 months ago (2011-06-27 17:33:31 UTC) #9
jar (doing other things)
The changes LGTM, but it is hard to tell if you got it right, and ...
9 years, 5 months ago (2011-06-27 18:50:19 UTC) #10
Tom Sepez
Yes, I've checked manually that each page renders as I've been converting this, doing chromeos=1 ...
9 years, 5 months ago (2011-06-27 19:20:19 UTC) #11
Evan Martin
9 years, 5 months ago (2011-06-28 17:19:18 UTC) #12
base LGTM

Powered by Google App Engine
This is Rietveld 408576698