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

Issue 17298002: Allow tabCapture API to be granted for chrome:// pages. (Closed)

Created:
7 years, 6 months ago by justinlin
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Allow tabCapture API to be granted for chrome:// pages. BUG=243150 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223269

Patch Set 1 : #

Total comments: 4

Patch Set 2 : use new permission instead #

Total comments: 10

Patch Set 3 : comments #

Patch Set 4 : sync to head, nit #

Patch Set 5 : Fix permissions tests #

Total comments: 7

Patch Set 6 : comments #

Patch Set 7 : fix tests.. how did it even work before? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -53 lines) Patch
M chrome/browser/extensions/active_tab_permission_granter.h View 1 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/active_tab_permission_granter.cc View 1 2 3 4 5 1 chunk +25 lines, -28 lines 0 comments Download
M chrome/browser/extensions/active_tab_unittest.cc View 1 2 3 4 5 6 9 chunks +49 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/tab_capture/tab_capture_api.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc View 1 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_keybinding_apitest.cc View 1 2 3 4 5 3 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_keybinding_apitest_new.cc View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/tab_capture.idl View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tab_capture/experimental/active_tab_chrome_pages.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tab_capture/experimental/active_tab_chrome_pages.js View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
justinlin
ptal, thanks.
7 years, 6 months ago (2013-06-17 18:07:16 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/17298002/diff/2001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/17298002/diff/2001/chrome/browser/extensions/active_tab_permission_granter.cc#newcode54 chrome/browser/extensions/active_tab_permission_granter.cc:54: granted_extensions_.Insert(extension); this means that an extension with the tab ...
7 years, 6 months ago (2013-06-17 18:14:13 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/17298002/diff/2001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/17298002/diff/2001/chrome/browser/extensions/active_tab_permission_granter.cc#newcode54 chrome/browser/extensions/active_tab_permission_granter.cc:54: granted_extensions_.Insert(extension); On 2013/06/17 18:14:13, kalman wrote: > this means ...
7 years, 6 months ago (2013-06-17 18:16:09 UTC) #3
justinlin
https://codereview.chromium.org/17298002/diff/2001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/17298002/diff/2001/chrome/browser/extensions/active_tab_permission_granter.cc#newcode54 chrome/browser/extensions/active_tab_permission_granter.cc:54: granted_extensions_.Insert(extension); On 2013/06/17 18:14:13, kalman wrote: > this means ...
7 years, 6 months ago (2013-06-17 18:22:19 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/17298002/diff/2001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/17298002/diff/2001/chrome/browser/extensions/active_tab_permission_granter.cc#newcode54 chrome/browser/extensions/active_tab_permission_granter.cc:54: granted_extensions_.Insert(extension); On 2013/06/17 18:22:20, justinlin wrote: > On 2013/06/17 ...
7 years, 6 months ago (2013-06-17 18:44:45 UTC) #5
justinlin
Super late reply! Here's another proposal. What about adding an observer interface to ActiveTabPermissionGranter which ...
7 years, 3 months ago (2013-09-13 00:50:58 UTC) #6
not at google - send to devlin
Heh, been a while. I have yet another proposal at this point. - add a ...
7 years, 3 months ago (2013-09-13 01:26:29 UTC) #7
justinlin
I'm a fan! Made those changes. PTAL
7 years, 3 months ago (2013-09-13 02:54:12 UTC) #8
not at google - send to devlin
lg but there are a couple of other places IsGranted is used, you'll need to ...
7 years, 3 months ago (2013-09-13 03:22:43 UTC) #9
justinlin
Thanks, PTAL. Added a test, and checked that it works, but can't turn it on ...
7 years, 3 months ago (2013-09-13 19:27:32 UTC) #10
not at google - send to devlin
lgtm https://codereview.chromium.org/17298002/diff/11001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/17298002/diff/11001/chrome/browser/extensions/active_tab_permission_granter.cc#newcode43 chrome/browser/extensions/active_tab_permission_granter.cc:43: } On 2013/09/13 19:27:32, justinlin wrote: > On ...
7 years, 3 months ago (2013-09-13 22:09:45 UTC) #11
justinlin
thanks https://codereview.chromium.org/17298002/diff/11001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/17298002/diff/11001/chrome/browser/extensions/active_tab_permission_granter.cc#newcode43 chrome/browser/extensions/active_tab_permission_granter.cc:43: } On 2013/09/13 22:09:45, kalman wrote: > On ...
7 years, 3 months ago (2013-09-13 22:47:14 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/17298002/diff/27001/chrome/browser/extensions/active_tab_permission_granter.cc File chrome/browser/extensions/active_tab_permission_granter.cc (right): https://codereview.chromium.org/17298002/diff/27001/chrome/browser/extensions/active_tab_permission_granter.cc#newcode57 chrome/browser/extensions/active_tab_permission_granter.cc:57: new_apis.insert(APIPermission::kTab); On 2013/09/13 22:47:15, justinlin wrote: > On 2013/09/13 ...
7 years, 3 months ago (2013-09-13 22:48:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/17298002/42001
7 years, 3 months ago (2013-09-13 22:50:25 UTC) #14
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=78918
7 years, 3 months ago (2013-09-14 01:24:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/17298002/56001
7 years, 3 months ago (2013-09-14 20:36:55 UTC) #16
commit-bot: I haz the power
7 years, 3 months ago (2013-09-15 00:50:02 UTC) #17
Message was sent while issue was closed.
Change committed as 223269

Powered by Google App Engine
This is Rietveld 408576698