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

Issue 10815028: Make ActiveTabPermissionManager also grant the tabs permission. (Closed)

Created:
8 years, 5 months ago by not at google - send to devlin
Modified:
8 years, 4 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, benwells, koz (OOO until 15th September)
Visibility:
Public.

Description

Make ActiveTabPermissionManager also grant the tabs permission for that tab; only respected for tabs.executeScript and tabs.insertCSS. This involved converting tabs.executeScript/insertCSS to use JSON schema compiler. BUG=137643 TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149631

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : add test, fix typo #

Patch Set 5 : cleanup #

Total comments: 9

Patch Set 6 : aa #

Patch Set 7 : add API test and fix a bug (woo) #

Total comments: 1

Patch Set 8 : oops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+576 lines, -426 lines) Patch
A chrome/browser/extensions/active_tab_apitest.cc View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/extensions/active_tab_permission_manager.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/extensions/active_tab_unittest.cc View 1 2 3 4 7 chunks +30 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/tabs/execute_code_in_tab_function.h View 1 4 chunks +16 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/tabs/execute_code_in_tab_function.cc View 1 2 3 4 5 6 7 4 chunks +85 lines, -74 lines 0 comments Download
M chrome/browser/extensions/extension_function.h View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 6 chunks +17 lines, -10 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/tabs.json View 1 2 3 4 3 chunks +20 lines, -26 lines 0 comments Download
M chrome/common/extensions/docs/extensions/tabs.html View 1 2 3 4 6 chunks +137 lines, -212 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 3 chunks +17 lines, -16 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 5 chunks +43 lines, -30 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 4 chunks +46 lines, -27 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 4 chunks +23 lines, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/apitest.js View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
A chrome/test/data/extensions/api_test/active_tab/background.js View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/active_tab/final_page.html View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/active_tab/manifest.json View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/active_tab/page.html View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
not at google - send to devlin
https://chromiumcodereview.appspot.com/10815028/diff/6001/chrome/browser/extensions/extension_function.h File chrome/browser/extensions/extension_function.h (right): https://chromiumcodereview.appspot.com/10815028/diff/6001/chrome/browser/extensions/extension_function.h#newcode47 chrome/browser/extensions/extension_function.h:47: #ifdef NDEBUG Pretty please I want to make this ...
8 years, 5 months ago (2012-07-25 07:03:46 UTC) #1
not at google - send to devlin
Looks like it's failing some of the browser tests. Possibly premature to have sent this ...
8 years, 5 months ago (2012-07-25 08:24:33 UTC) #2
not at google - send to devlin
Hey Aaron, PTAL. This is ready now.
8 years, 4 months ago (2012-07-31 08:57:11 UTC) #3
Aaron Boodman
http://codereview.chromium.org/10815028/diff/17016/chrome/browser/extensions/extension_function.h File chrome/browser/extensions/extension_function.h (right): http://codereview.chromium.org/10815028/diff/17016/chrome/browser/extensions/extension_function.h#newcode86 chrome/browser/extensions/extension_function.h:86: // Returns true if the function permission to run. ...
8 years, 4 months ago (2012-07-31 14:53:43 UTC) #4
not at google - send to devlin
working on the background page thing before I upload the next patch set. http://codereview.chromium.org/10815028/diff/17016/chrome/browser/extensions/extension_function.h File ...
8 years, 4 months ago (2012-07-31 15:09:05 UTC) #5
not at google - send to devlin
http://codereview.chromium.org/10815028/diff/17016/chrome/browser/extensions/extension_function_dispatcher.cc File chrome/browser/extensions/extension_function_dispatcher.cc (right): http://codereview.chromium.org/10815028/diff/17016/chrome/browser/extensions/extension_function_dispatcher.cc#newcode220 chrome/browser/extensions/extension_function_dispatcher.cc:220: if (!function->HasPermission()) { On 2012/07/31 15:09:05, kalman wrote: > ...
8 years, 4 months ago (2012-08-01 13:57:04 UTC) #6
not at google - send to devlin
Added an API test, PTAL. Had to mess with ExtensionFunctionDispatcher a bit more, since the ...
8 years, 4 months ago (2012-08-02 12:23:47 UTC) #7
Aaron Boodman
LGTM
8 years, 4 months ago (2012-08-02 12:55:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10815028/18017
8 years, 4 months ago (2012-08-02 12:58:02 UTC) #9
commit-bot: I haz the power
Presubmit check for 10815028-18017 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-02 12:58:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10815028/18017
8 years, 4 months ago (2012-08-02 14:03:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10815028/18020
8 years, 4 months ago (2012-08-02 14:05:31 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 15:32:18 UTC) #13
Change committed as 149631

Powered by Google App Engine
This is Rietveld 408576698