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

Issue 1414223005: Remove URLs from chrome.tabs.executeScript permission warning. (Closed)

Created:
5 years, 1 month ago by battre
Modified:
5 years, 1 month ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Mike West
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove URLs from chrome.tabs.executeScript permission warning. This CL removes the URL error messages triggered by chrome.tabs.executeScript when the extension lacks the permission to access the respective host. This is necessary to prevent that an extension can see the list of open URLs of all tabs without having asked for appropriate permission. BUG=551626 Committed: https://crrev.com/b807906072e191a10febe3f1e9b9fa46429abff9 Cr-Commit-Position: refs/heads/master@{#359392}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed comments #

Patch Set 3 : Added todo #

Patch Set 4 : Fixed test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -44 lines) Patch
M chrome/browser/extensions/api/tabs/tabs_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_tabs_apitest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/active_tab/background.js View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/executescript/basic/test.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/executescript/navigation_race/test.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/tabs/no_permissions/test.js View 1 1 chunk +57 lines, -33 lines 0 comments Download
M extensions/common/manifest_constants.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M extensions/common/permissions/permissions_data.cc View 1 3 chunks +16 lines, -5 lines 0 comments Download
M extensions/renderer/programmatic_script_injector.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
battre
Devlin, could you please review this? Thank you! Best regards, Dominic
5 years, 1 month ago (2015-11-06 10:39:12 UTC) #3
battre
BTW: I did not update kCannotAccessAboutUrl because I don't expect confidential information in those URLs.
5 years, 1 month ago (2015-11-06 10:39:55 UTC) #4
Devlin
https://codereview.chromium.org/1414223005/diff/1/chrome/test/data/extensions/api_test/active_tab/background.js File chrome/test/data/extensions/api_test/active_tab/background.js (right): https://codereview.chromium.org/1414223005/diff/1/chrome/test/data/extensions/api_test/active_tab/background.js#newcode59 chrome/test/data/extensions/api_test/active_tab/background.js:59: 'Cannot access contents of a page. ' + nitty ...
5 years, 1 month ago (2015-11-06 20:00:39 UTC) #5
battre
https://codereview.chromium.org/1414223005/diff/1/chrome/test/data/extensions/api_test/active_tab/background.js File chrome/test/data/extensions/api_test/active_tab/background.js (right): https://codereview.chromium.org/1414223005/diff/1/chrome/test/data/extensions/api_test/active_tab/background.js#newcode59 chrome/test/data/extensions/api_test/active_tab/background.js:59: 'Cannot access contents of a page. ' + On ...
5 years, 1 month ago (2015-11-06 21:44:18 UTC) #6
Devlin
https://codereview.chromium.org/1414223005/diff/1/chrome/test/data/extensions/api_test/active_tab/background.js File chrome/test/data/extensions/api_test/active_tab/background.js (right): https://codereview.chromium.org/1414223005/diff/1/chrome/test/data/extensions/api_test/active_tab/background.js#newcode59 chrome/test/data/extensions/api_test/active_tab/background.js:59: 'Cannot access contents of a page. ' + On ...
5 years, 1 month ago (2015-11-06 22:06:13 UTC) #7
battre
https://codereview.chromium.org/1414223005/diff/1/chrome/test/data/extensions/api_test/active_tab/background.js File chrome/test/data/extensions/api_test/active_tab/background.js (right): https://codereview.chromium.org/1414223005/diff/1/chrome/test/data/extensions/api_test/active_tab/background.js#newcode59 chrome/test/data/extensions/api_test/active_tab/background.js:59: 'Cannot access contents of a page. ' + On ...
5 years, 1 month ago (2015-11-11 13:31:17 UTC) #8
Devlin
Looks like some tests are failing, so holding off on the LG in case more ...
5 years, 1 month ago (2015-11-11 16:50:47 UTC) #9
battre
Fixed test case
5 years, 1 month ago (2015-11-11 18:11:21 UTC) #10
battre
The failure was caused by the TODO. I have adapted the test case accordingly. Feel ...
5 years, 1 month ago (2015-11-11 18:12:00 UTC) #11
battre
On 2015/11/11 18:12:00, battre wrote: > The failure was caused by the TODO. I have ...
5 years, 1 month ago (2015-11-12 16:41:45 UTC) #12
Devlin
Whoops, sorry - had this open and forgot to send. LGTM.
5 years, 1 month ago (2015-11-12 16:54:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414223005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414223005/60001
5 years, 1 month ago (2015-11-12 17:49:17 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-12 21:25:53 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 21:27:05 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b807906072e191a10febe3f1e9b9fa46429abff9
Cr-Commit-Position: refs/heads/master@{#359392}

Powered by Google App Engine
This is Rietveld 408576698