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

Issue 11824004: Do not pass URLs in onUpdated events to extensions unless they have the (Closed)

Created:
7 years, 11 months ago by mvrable
Modified:
7 years, 11 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Do not pass URLs in onUpdated events to extensions unless they have the "tabs" permission. BUG=168442 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176406 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176546

Patch Set 1 #

Total comments: 10

Patch Set 2 : Revised to address review comments #

Total comments: 10

Patch Set 3 : Additional updates #

Patch Set 4 : Add test cases #

Total comments: 10

Patch Set 5 : Address review comments on tests #

Total comments: 6

Patch Set 6 : More updates to the tests #

Patch Set 7 : [reupload] #

Patch Set 8 : #

Patch Set 9 : Fix Android build #

Patch Set 10 : Improve ExtensionApiTest.TabsNoPermissions test #

Total comments: 3

Patch Set 11 : Update test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -53 lines) Patch
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/browser_event_router.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/browser_event_router.cc View 1 2 3 4 5 6 7 8 9 6 chunks +27 lines, -17 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.h View 1 2 2 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.cc View 1 2 3 4 5 6 7 8 9 4 chunks +25 lines, -18 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util_android.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_apitest.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/menu_manager.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json View 1 2 3 4 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/no_permissions/test.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
not at google - send to devlin
is there someplace to put a test? https://codereview.chromium.org/11824004/diff/1/chrome/browser/extensions/browser_event_router.cc File chrome/browser/extensions/browser_event_router.cc (right): https://codereview.chromium.org/11824004/diff/1/chrome/browser/extensions/browser_event_router.cc#newcode407 chrome/browser/extensions/browser_event_router.cc:407: ExtensionTabUtil::ScrubTabValue(contents, extension, ...
7 years, 11 months ago (2013-01-08 21:25:09 UTC) #1
mvrable
Thanks for the feedback; I've made some changes in response to your comments. Let me ...
7 years, 11 months ago (2013-01-09 01:46:59 UTC) #2
not at google - send to devlin
lgtm, what you have looks good, I think removing the enum is fine. If you ...
7 years, 11 months ago (2013-01-09 02:04:29 UTC) #3
mvrable
A few more minor updates in response to your comments. I'm also taking a quick ...
7 years, 11 months ago (2013-01-09 19:25:35 UTC) #4
mvrable
I made another update to the code, to add a new test case (ExtensionApiTest.TabsNoPermissions in ...
7 years, 11 months ago (2013-01-09 21:40:12 UTC) #5
not at google - send to devlin
https://codereview.chromium.org/11824004/diff/11001/chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json File chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json (right): https://codereview.chromium.org/11824004/diff/11001/chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json#newcode7 chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json:7: "page": "test.html" use "script": "test.js", then you don't need ...
7 years, 11 months ago (2013-01-09 21:54:31 UTC) #6
mvrable
Updated. https://codereview.chromium.org/11824004/diff/11001/chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json File chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json (right): https://codereview.chromium.org/11824004/diff/11001/chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json#newcode7 chrome/test/data/extensions/api_test/tabs/no_permissions/manifest.json:7: "page": "test.html" On 2013/01/09 21:54:31, kalman wrote: > ...
7 years, 11 months ago (2013-01-09 22:22:59 UTC) #7
not at google - send to devlin
lgtm with those couple of test changes https://codereview.chromium.org/11824004/diff/13001/chrome/test/data/extensions/api_test/tabs/no_permissions/test.js File chrome/test/data/extensions/api_test/tabs/no_permissions/test.js (right): https://codereview.chromium.org/11824004/diff/13001/chrome/test/data/extensions/api_test/tabs/no_permissions/test.js#newcode14 chrome/test/data/extensions/api_test/tabs/no_permissions/test.js:14: } nit: ...
7 years, 11 months ago (2013-01-09 22:30:15 UTC) #8
mvrable
A few more updates, plus a couple of JavaScript style fixes. https://codereview.chromium.org/11824004/diff/13001/chrome/test/data/extensions/api_test/tabs/no_permissions/test.js File chrome/test/data/extensions/api_test/tabs/no_permissions/test.js (right): ...
7 years, 11 months ago (2013-01-09 23:03:14 UTC) #9
not at google - send to devlin
lgtm
7 years, 11 months ago (2013-01-09 23:04:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/11824004/3011
7 years, 11 months ago (2013-01-10 00:26:40 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-10 01:09:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/11824004/2015
7 years, 11 months ago (2013-01-10 04:51:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/11824004/9019
7 years, 11 months ago (2013-01-10 05:06:26 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) content_browsertests
7 years, 11 months ago (2013-01-10 09:23:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/11824004/9019
7 years, 11 months ago (2013-01-11 17:49:14 UTC) #16
commit-bot: I haz the power
Change committed as 176406
7 years, 11 months ago (2013-01-11 19:19:28 UTC) #17
mvrable
Updated patch to fix a test failure. Does the updated test look reasonable to you? ...
7 years, 11 months ago (2013-01-11 21:37:04 UTC) #18
not at google - send to devlin
lgtm https://codereview.chromium.org/11824004/diff/25001/chrome/test/data/extensions/api_test/tabs/no_permissions/test.js File chrome/test/data/extensions/api_test/tabs/no_permissions/test.js (right): https://codereview.chromium.org/11824004/diff/25001/chrome/test/data/extensions/api_test/tabs/no_permissions/test.js#newcode33 chrome/test/data/extensions/api_test/tabs/no_permissions/test.js:33: eventHandled(); nitty comment: I was briefly confused here, ...
7 years, 11 months ago (2013-01-11 21:44:41 UTC) #19
not at google - send to devlin
https://codereview.chromium.org/11824004/diff/25001/chrome/test/data/extensions/api_test/tabs/no_permissions/test.js File chrome/test/data/extensions/api_test/tabs/no_permissions/test.js (right): https://codereview.chromium.org/11824004/diff/25001/chrome/test/data/extensions/api_test/tabs/no_permissions/test.js#newcode33 chrome/test/data/extensions/api_test/tabs/no_permissions/test.js:33: eventHandled(); On 2013/01/11 21:44:41, kalman wrote: > nitty comment: ...
7 years, 11 months ago (2013-01-11 21:45:22 UTC) #20
mvrable
Changed the names and added a missing call to assertNoSensitiveFields(info), so we check both arguments ...
7 years, 11 months ago (2013-01-11 21:57:06 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvrable@chromium.org/11824004/35001
7 years, 11 months ago (2013-01-11 22:03:34 UTC) #22
commit-bot: I haz the power
7 years, 11 months ago (2013-01-12 16:54:53 UTC) #23
Message was sent while issue was closed.
Change committed as 176546

Powered by Google App Engine
This is Rietveld 408576698