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

Issue 399783002: Begin whitelisting specific extensions for global key registration. (Closed)

Created:
6 years, 5 months ago by David Tseng
Modified:
6 years, 3 months ago
CC:
dmazzoni, Peter Lundblad, chromium-reviews, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Begin whitelisting specific extensions for global key registration. Adds whitelist to commands API to relax restrictions on: - global accelerator keys - maximum number of commands - override previously taken accelerators This cl also involved fixing the use of the search key while using the global commands listener. The 'command' modifier was being dropped while making its way to the renderer and back. BUG=404768 TEST=With a sample extension binding "Search+Shift+L" and "global": true press and verify callback when focus is inside of web content focus is on the status tray Committed: https://crrev.com/28ba7f5f7ba661275a7bf6081b2e21a2270f25eb Cr-Commit-Position: refs/heads/master@{#291628}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Update cl with new permission "commands.accessibility". #

Total comments: 16

Patch Set 3 : fix nits; rebase #

Total comments: 2

Patch Set 4 : Fix rebase. #

Total comments: 2

Patch Set 5 : Add bug. #

Total comments: 1

Patch Set 6 : Fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M chrome/browser/extensions/api/commands/command_service.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/commands/commands_handler.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/native_web_keyboard_event.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
David Tseng
6 years, 5 months ago (2014-07-16 22:35:50 UTC) #1
Finnur
https://codereview.chromium.org/399783002/diff/1/chrome/browser/extensions/api/commands/command_service.cc File chrome/browser/extensions/api/commands/command_service.cc (right): https://codereview.chromium.org/399783002/diff/1/chrome/browser/extensions/api/commands/command_service.cc#newcode570 chrome/browser/extensions/api/commands/command_service.cc:570: } This seems a bit hacky. We already have ...
6 years, 5 months ago (2014-07-17 11:00:52 UTC) #2
David Tseng
https://codereview.chromium.org/399783002/diff/1/chrome/browser/extensions/api/commands/command_service.cc File chrome/browser/extensions/api/commands/command_service.cc (right): https://codereview.chromium.org/399783002/diff/1/chrome/browser/extensions/api/commands/command_service.cc#newcode570 chrome/browser/extensions/api/commands/command_service.cc:570: } On 2014/07/17 11:00:52, Finnur wrote: > This seems ...
6 years, 5 months ago (2014-07-18 22:54:51 UTC) #3
Finnur
BUG=none I believe we want to file a bug for all work items, so they ...
6 years, 4 months ago (2014-08-11 14:01:07 UTC) #4
David Tseng
Just answering a few questions. https://codereview.chromium.org/399783002/diff/1/chrome/browser/extensions/api/commands/command_service.cc File chrome/browser/extensions/api/commands/command_service.cc (right): https://codereview.chromium.org/399783002/diff/1/chrome/browser/extensions/api/commands/command_service.cc#newcode570 chrome/browser/extensions/api/commands/command_service.cc:570: } On 2014/08/11 14:01:07, ...
6 years, 4 months ago (2014-08-19 22:47:50 UTC) #5
Finnur
https://codereview.chromium.org/399783002/diff/1/chrome/browser/extensions/api/commands/command_service.cc File chrome/browser/extensions/api/commands/command_service.cc (right): https://codereview.chromium.org/399783002/diff/1/chrome/browser/extensions/api/commands/command_service.cc#newcode570 chrome/browser/extensions/api/commands/command_service.cc:570: } OK, then that's definitely something you'd want to ...
6 years, 4 months ago (2014-08-20 12:41:14 UTC) #6
David Tseng
PTAL; added a new permission "commands.accessibility" which contains a whitelist of all extensions that have ...
6 years, 4 months ago (2014-08-20 23:24:26 UTC) #7
Finnur
https://codereview.chromium.org/399783002/diff/20001/chrome/browser/extensions/api/commands/command_service.cc File chrome/browser/extensions/api/commands/command_service.cc (right): https://codereview.chromium.org/399783002/diff/20001/chrome/browser/extensions/api/commands/command_service.cc#newcode570 chrome/browser/extensions/api/commands/command_service.cc:570: } nit: No need for braces (single line if ...
6 years, 4 months ago (2014-08-21 11:18:11 UTC) #8
David Tseng
https://codereview.chromium.org/399783002/diff/20001/chrome/common/extensions/command.cc File chrome/common/extensions/command.cc (right): https://codereview.chromium.org/399783002/diff/20001/chrome/common/extensions/command.cc#newcode81 chrome/common/extensions/command.cc:81: tokens[i] == values::kKeySearch) { On 2014/08/21 11:18:11, Finnur wrote: ...
6 years, 4 months ago (2014-08-21 16:03:04 UTC) #9
David Tseng
https://codereview.chromium.org/399783002/diff/20001/chrome/browser/extensions/api/commands/command_service.cc File chrome/browser/extensions/api/commands/command_service.cc (right): https://codereview.chromium.org/399783002/diff/20001/chrome/browser/extensions/api/commands/command_service.cc#newcode570 chrome/browser/extensions/api/commands/command_service.cc:570: } On 2014/08/21 11:18:10, Finnur wrote: > nit: No ...
6 years, 4 months ago (2014-08-21 16:17:57 UTC) #10
Finnur
https://codereview.chromium.org/399783002/diff/20001/chrome/browser/extensions/api/commands/command_service.cc File chrome/browser/extensions/api/commands/command_service.cc (right): https://codereview.chromium.org/399783002/diff/20001/chrome/browser/extensions/api/commands/command_service.cc#newcode570 chrome/browser/extensions/api/commands/command_service.cc:570: } Yup. It is a common misunderstanding of the ...
6 years, 4 months ago (2014-08-21 16:23:33 UTC) #11
David Tseng
https://codereview.chromium.org/399783002/diff/40001/chrome/common/extensions/command.cc File chrome/common/extensions/command.cc (right): https://codereview.chromium.org/399783002/diff/40001/chrome/common/extensions/command.cc#newcode83 chrome/common/extensions/command.cc:83: platform_key == values::kKeybindingPlatformChromeOs) { On 2014/08/21 16:23:32, Finnur wrote: ...
6 years, 4 months ago (2014-08-21 17:24:51 UTC) #12
Finnur
One nit, then LGTM. https://codereview.chromium.org/399783002/diff/60001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/399783002/diff/60001/chrome/common/extensions/api/_permission_features.json#newcode281 chrome/common/extensions/api/_permission_features.json:281: "75C7F4B720314B6CB1B5817CD86089DB95CD2461" Don't you need the ...
6 years, 4 months ago (2014-08-21 17:54:40 UTC) #13
David Tseng
https://codereview.chromium.org/399783002/diff/60001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/399783002/diff/60001/chrome/common/extensions/api/_permission_features.json#newcode281 chrome/common/extensions/api/_permission_features.json:281: "75C7F4B720314B6CB1B5817CD86089DB95CD2461" On 2014/08/21 17:54:40, Finnur wrote: > Don't you ...
6 years, 4 months ago (2014-08-21 19:43:55 UTC) #14
David Tseng
+ sky, kalman for OWNERS.
6 years, 4 months ago (2014-08-22 16:47:34 UTC) #15
not at google - send to devlin
lgtm https://codereview.chromium.org/399783002/diff/80001/chrome/common/extensions/api/_permission_features.json File chrome/common/extensions/api/_permission_features.json (right): https://codereview.chromium.org/399783002/diff/80001/chrome/common/extensions/api/_permission_features.json#newcode278 chrome/common/extensions/api/_permission_features.json:278: "extension_types": ["extension", "legacy_packaged_app", "platform_app"], We should stop granting ...
6 years, 4 months ago (2014-08-22 16:55:19 UTC) #16
sky
content/browser/renderer_host/native_web_keyboard_event.cc LGTM
6 years, 4 months ago (2014-08-22 19:31:58 UTC) #17
David Tseng
The CQ bit was checked by dtseng@chromium.org
6 years, 4 months ago (2014-08-24 18:39:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtseng@chromium.org/399783002/100001
6 years, 4 months ago (2014-08-24 18:40:43 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (100001) as 528ed1e6ad55a15100a8b6c0cb5bfc36a3f6d9f2
6 years, 4 months ago (2014-08-24 19:34:28 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:32:41 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/28ba7f5f7ba661275a7bf6081b2e21a2270f25eb
Cr-Commit-Position: refs/heads/master@{#291628}

Powered by Google App Engine
This is Rietveld 408576698