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

Issue 7148023: Add content-security-policy (CSP) to chrome://flags. (Closed)

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

Description

Add content-security-policy (CSP) to chrome://flags. CSP provides a second line of defense against XSS flaws in the underlying page by requiring all scripts to come from well-known external sources. This CL moves the JS formerly in flags.html into new file flags.js, and adds some JS to attach handlers formerly set by inline onclick="" attributes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89723

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -306 lines) Patch
M chrome/browser/browser_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/flags.css View 1 2 1 chunk +151 lines, -0 lines 0 comments Download
M chrome/browser/resources/flags.html View 1 2 3 4 chunks +23 lines, -247 lines 1 comment Download
A chrome/browser/resources/flags.js View 1 1 chunk +122 lines, -0 lines 0 comments Download
M chrome/browser/resources/flags_warning.html View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_data_source.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_data_source.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/flags_ui.cc View 1 3 chunks +51 lines, -59 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Tom Sepez
Please review. Thanks heaps.
9 years, 6 months ago (2011-06-14 22:00:39 UTC) #1
abarth-chromium
Looks good to me, but I didn't study the details.
9 years, 6 months ago (2011-06-14 22:08:16 UTC) #2
Evan Stade
lgtm with a couple nits http://codereview.chromium.org/7148023/diff/1/chrome/browser/resources/flags.html File chrome/browser/resources/flags.html (right): http://codereview.chromium.org/7148023/diff/1/chrome/browser/resources/flags.html#newcode9 chrome/browser/resources/flags.html:9: <meta http-equiv="X-WebKit-CSP" content="object-src 'none'; ...
9 years, 6 months ago (2011-06-18 00:37:25 UTC) #3
Tom Sepez
> 80 (I think you can just wrap strings in html like: Sure. 80 is ...
9 years, 6 months ago (2011-06-20 17:43:56 UTC) #4
Evan Stade
On Mon, Jun 20, 2011 at 10:43 AM, <tsepez@chromium.org> wrote: > >> 80 (I think ...
9 years, 6 months ago (2011-06-20 17:45:58 UTC) #5
Tom Sepez
> Leave the code cleaner than when you found it. Moving the css to a ...
9 years, 6 months ago (2011-06-20 18:08:22 UTC) #6
Evan Stade
9 years, 6 months ago (2011-06-20 18:50:28 UTC) #7
thanks. lgtm

http://codereview.chromium.org/7148023/diff/7005/chrome/browser/resources/fla...
File chrome/browser/resources/flags.html (right):

http://codereview.chromium.org/7148023/diff/7005/chrome/browser/resources/fla...
chrome/browser/resources/flags.html:10: script-src chrome://resources 'self'
'unsafe-eval'">
4 space indent for continuation lines

Powered by Google App Engine
This is Rietveld 408576698