Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1358)

Issue 10067028: Make ungranted extension permissions not be an error, but show a warning (Closed)

Created:
8 years, 8 months ago by not at google - send to devlin
Modified:
8 years, 8 months ago
CC:
chromium-reviews, arv (Not doing code reviews), mihaip+watch_chromium.org, benwells, koz (OOO until 15th September)
Visibility:
Public.

Description

Make ungranted extension permissions not be an error, but show a warning in the extension developer mode. For example, the following permissions wouldn't be granted: - foobar It's not a real permission. - http://google.com:80 It's a malformed URL pattern. - storage (If manifest_version == 1) because manifest_version must be >= 2. - storage (If on stable/beta channel) because it's only supported on dev channel. BUG=121826 TEST=unit_tests --gtest_fitler='*ExtensionManifestTest*' Fake beta channel and try installing stylizr Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133144

Patch Set 1 #

Patch Set 2 : . #

Total comments: 5

Patch Set 3 : generic install warnings #

Patch Set 4 : make it pink #

Patch Set 5 : pink background #

Total comments: 6

Patch Set 6 : . #

Total comments: 4

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 8

Patch Set 10 : . #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -39 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.css View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -2 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +13 lines, -19 lines 0 comments Download
M chrome/common/extensions/feature.cc View 1 2 1 chunk +29 lines, -12 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_platformapp_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_storage_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -4 lines 0 comments Download
M chrome/common/extensions/manifest_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
not at google - send to devlin
8 years, 8 months ago (2012-04-13 01:33:17 UTC) #1
Evan Stade
https://chromiumcodereview.appspot.com/10067028/diff/2001/chrome/browser/resources/extensions/extension_list.js File chrome/browser/resources/extensions/extension_list.js (right): https://chromiumcodereview.appspot.com/10067028/diff/2001/chrome/browser/resources/extensions/extension_list.js#newcode242 chrome/browser/resources/extensions/extension_list.js:242: item.appendChild(document.createElement('strong')).innerText = do not use strong or br. Use ...
8 years, 8 months ago (2012-04-13 01:54:11 UTC) #2
Aaron Boodman
I think this should just be a general warning mechanism. You can put a std::vector<std::string> ...
8 years, 8 months ago (2012-04-13 04:53:46 UTC) #3
not at google - send to devlin
Aaron -- there is already a general warning system, with code in that .cc file ...
8 years, 8 months ago (2012-04-13 06:11:51 UTC) #4
Aaron Boodman
On Thu, Apr 12, 2012 at 11:11 PM, <[email protected]> wrote: > Aaron -- there is ...
8 years, 8 months ago (2012-04-13 15:44:11 UTC) #5
not at google - send to devlin
> > Why can't it just be a vector of strings? > How would that ...
8 years, 8 months ago (2012-04-13 20:42:54 UTC) #6
not at google - send to devlin
On 2012/04/13 20:42:54, kalman wrote: > > > > Why can't it just be a ...
8 years, 8 months ago (2012-04-13 20:55:08 UTC) #7
not at google - send to devlin
https://chromiumcodereview.appspot.com/10067028/diff/2001/chrome/browser/resources/extensions/extension_list.js File chrome/browser/resources/extensions/extension_list.js (right): https://chromiumcodereview.appspot.com/10067028/diff/2001/chrome/browser/resources/extensions/extension_list.js#newcode242 chrome/browser/resources/extensions/extension_list.js:242: item.appendChild(document.createElement('strong')).innerText = On 2012/04/13 01:54:11, Evan Stade wrote: > ...
8 years, 8 months ago (2012-04-13 22:11:38 UTC) #8
not at google - send to devlin
(PTAL)
8 years, 8 months ago (2012-04-13 22:11:49 UTC) #9
Evan Stade
well, I am serious about thinking the red looks awful. Why don't you copy the ...
8 years, 8 months ago (2012-04-16 18:23:07 UTC) #10
not at google - send to devlin
On 2012/04/16 18:23:07, Evan Stade wrote: > well, I am serious about thinking the red ...
8 years, 8 months ago (2012-04-16 19:15:26 UTC) #11
not at google - send to devlin
I made it pink
8 years, 8 months ago (2012-04-16 22:41:27 UTC) #12
Evan Stade
On 2012/04/16 19:15:26, kalman wrote: > On 2012/04/16 18:23:07, Evan Stade wrote: > > well, ...
8 years, 8 months ago (2012-04-17 02:01:13 UTC) #13
not at google - send to devlin
On 2012/04/17 02:01:13, Evan Stade wrote: > On 2012/04/16 19:15:26, kalman wrote: > > On ...
8 years, 8 months ago (2012-04-17 04:06:42 UTC) #14
Evan Stade
> Why don't you copy the butter-bar style but make the background pink.
8 years, 8 months ago (2012-04-17 21:09:24 UTC) #15
not at google - send to devlin
On 2012/04/17 21:09:24, Evan Stade wrote: > > Why don't you copy the butter-bar style ...
8 years, 8 months ago (2012-04-17 21:15:52 UTC) #16
Evan Stade
http://codereview.chromium.org/10067028/diff/18001/chrome/browser/resources/extensions/extensions.css File chrome/browser/resources/extensions/extensions.css (right): http://codereview.chromium.org/10067028/diff/18001/chrome/browser/resources/extensions/extensions.css#newcode54 chrome/browser/resources/extensions/extensions.css:54: background-color: pink; this isn't copying the butter-bar style. http://codereview.chromium.org/10067028/diff/18001/chrome/browser/ui/webui/extensions/extension_settings_handler.cc ...
8 years, 8 months ago (2012-04-19 01:19:30 UTC) #17
not at google - send to devlin
http://codereview.chromium.org/10067028/diff/18001/chrome/browser/resources/extensions/extensions.css File chrome/browser/resources/extensions/extensions.css (right): http://codereview.chromium.org/10067028/diff/18001/chrome/browser/resources/extensions/extensions.css#newcode54 chrome/browser/resources/extensions/extensions.css:54: background-color: pink; On 2012/04/19 01:19:30, Evan Stade wrote: > ...
8 years, 8 months ago (2012-04-19 01:28:51 UTC) #18
Evan Stade
http://codereview.chromium.org/10067028/diff/24001/chrome/browser/resources/extensions/extensions.css File chrome/browser/resources/extensions/extensions.css (right): http://codereview.chromium.org/10067028/diff/24001/chrome/browser/resources/extensions/extensions.css#newcode54 chrome/browser/resources/extensions/extensions.css:54: background: rgb(255, 242, 153); this isn't pink http://codereview.chromium.org/10067028/diff/24001/chrome/browser/resources/extensions/extensions.css#newcode55 chrome/browser/resources/extensions/extensions.css:55: ...
8 years, 8 months ago (2012-04-19 01:38:58 UTC) #19
not at google - send to devlin
http://codereview.chromium.org/10067028/diff/24001/chrome/browser/resources/extensions/extensions.css File chrome/browser/resources/extensions/extensions.css (right): http://codereview.chromium.org/10067028/diff/24001/chrome/browser/resources/extensions/extensions.css#newcode54 chrome/browser/resources/extensions/extensions.css:54: background: rgb(255, 242, 153); On 2012/04/19 01:38:58, Evan Stade ...
8 years, 8 months ago (2012-04-19 01:48:35 UTC) #20
Evan Stade
On 2012/04/19 01:48:35, kalman wrote: > http://codereview.chromium.org/10067028/diff/24001/chrome/browser/resources/extensions/extensions.css > File chrome/browser/resources/extensions/extensions.css (right): > > http://codereview.chromium.org/10067028/diff/24001/chrome/browser/resources/extensions/extensions.css#newcode54 > ...
8 years, 8 months ago (2012-04-19 01:57:13 UTC) #21
not at google - send to devlin
On 2012/04/19 01:57:13, Evan Stade wrote: > On 2012/04/19 01:48:35, kalman wrote: > > > ...
8 years, 8 months ago (2012-04-19 02:26:19 UTC) #22
Evan Stade
http://codereview.chromium.org/10067028/diff/32001/chrome/browser/resources/extensions/extensions.css File chrome/browser/resources/extensions/extensions.css (right): http://codereview.chromium.org/10067028/diff/32001/chrome/browser/resources/extensions/extensions.css#newcode172 chrome/browser/resources/extensions/extensions.css:172: .butter-bar, .install-warnings { new line after comma http://codereview.chromium.org/10067028/diff/32001/chrome/browser/ui/webui/extensions/extension_settings_handler.cc File ...
8 years, 8 months ago (2012-04-19 03:02:35 UTC) #23
not at google - send to devlin
http://codereview.chromium.org/10067028/diff/32001/chrome/browser/resources/extensions/extensions.css File chrome/browser/resources/extensions/extensions.css (right): http://codereview.chromium.org/10067028/diff/32001/chrome/browser/resources/extensions/extensions.css#newcode172 chrome/browser/resources/extensions/extensions.css:172: .butter-bar, .install-warnings { On 2012/04/19 03:02:35, Evan Stade wrote: ...
8 years, 8 months ago (2012-04-19 04:39:49 UTC) #24
Evan Stade
lgtm
8 years, 8 months ago (2012-04-19 20:46:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10067028/35002
8 years, 8 months ago (2012-04-19 21:19:51 UTC) #26
commit-bot: I haz the power
Can't apply patch for file chrome/common/extensions/extension_manifests_unittest.cc. While running patch -p1 --forward --force; patching file chrome/common/extensions/extension_manifests_unittest.cc ...
8 years, 8 months ago (2012-04-19 21:19:59 UTC) #27
not at google - send to devlin
Thanks Evan
8 years, 8 months ago (2012-04-20 00:16:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10067028/38001
8 years, 8 months ago (2012-04-20 00:17:27 UTC) #29
commit-bot: I haz the power
Try job failure for 10067028-38001 on linux_clang for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clang&number=15998 Step "update" is always ...
8 years, 8 months ago (2012-04-20 00:21:09 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10067028/38001
8 years, 8 months ago (2012-04-20 00:24:39 UTC) #31
commit-bot: I haz the power
8 years, 8 months ago (2012-04-20 03:40:06 UTC) #32
Change committed as 133144

Powered by Google App Engine
This is Rietveld 408576698