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

Issue 8585020: Enable CSP by default for extensions with manifest_version >= 2. (Closed)

Created:
9 years, 1 month ago by abarth-chromium
Modified:
9 years, 1 month ago
Reviewers:
Aaron Boodman, aa
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Enable CSP by default for extensions with manifest_version >= 2. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110531

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -3 lines) Patch
M chrome/browser/extensions/content_security_policy_apitest.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension.h View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 4 chunks +23 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_constants.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_constants.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/default_content_security_policy/manifest.json View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/default_content_security_policy/test.html View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/default_content_security_policy/test.js View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
abarth-chromium
This patch contains just the basic default policy for manifest_version >= 2. Fancier ways of ...
9 years, 1 month ago (2011-11-17 05:19:31 UTC) #1
Aaron Boodman
LGTM w/ nit http://codereview.chromium.org/8585020/diff/25/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/8585020/diff/25/chrome/common/extensions/extension.cc#newcode1468 chrome/common/extensions/extension.cc:1468: manifest_version_ = manifest_version; Should we do ...
9 years, 1 month ago (2011-11-17 07:10:15 UTC) #2
Aaron Boodman
Oh, also, we have extension_manifest_unittests.cc for testing the parsing code.
9 years, 1 month ago (2011-11-17 07:10:33 UTC) #3
abarth-chromium
> Should we do something about manifest version > 2 ? It seems like the ...
9 years, 1 month ago (2011-11-17 07:14:25 UTC) #4
Aaron Boodman
On 2011/11/17 07:14:25, abarth wrote: > > Should we do something about manifest version > ...
9 years, 1 month ago (2011-11-17 07:42:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/8585020/3003
9 years, 1 month ago (2011-11-17 08:53:45 UTC) #6
commit-bot: I haz the power
9 years, 1 month ago (2011-11-17 08:53:49 UTC) #7
Presubmit check for 8585020-3003 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Messages **
If this change has an associated bug, add BUG=[bug number].

If this change requires manual test instructions to QA team, add
TEST=[instructions].

** Presubmit Warnings **
License must match:
.*? Copyright \(c\) 2011 The Chromium Authors\. All rights reserved\.\n.*? Use
of this source code is governed by a BSD-style license that can be\n.*? found in
the LICENSE file\.\n
Found a bad license header in these files:
  chrome/test/data/extensions/api_test/default_content_security_policy/test.js

Presubmit checks took 1.4s to calculate.

Powered by Google App Engine
This is Rietveld 408576698