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

Issue 140433003: tab capture: Change the permissions for tabs.captureVisibleTab(). (Closed)

Created:
6 years, 11 months ago by sadrul
Modified:
6 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

tab capture: Change the permissions for tabs.captureVisibleTab(). Require an extension to have '<all_urls>' permission, or been granted the 'activeTab' permission to be allowed to use tabs.captureVisibleTab(). BUG=83432 R=kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246766

Patch Set 1 #

Patch Set 2 : error #

Patch Set 3 : fix-tests #

Total comments: 15

Patch Set 4 : . #

Total comments: 9

Patch Set 5 : . #

Total comments: 4

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -166 lines) Patch
M chrome/browser/extensions/active_tab_unittest.cc View 1 2 3 4 9 chunks +56 lines, -34 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 1 chunk +0 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_apitest.cc View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/test/data/extensions/api_test/tabs/capture_visible_tab/manifest.json View 1 2 1 chunk +1 line, -1 line 0 comments Download
D chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_nofile.html View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/test/data/extensions/api_test/tabs/capture_visible_tab/test_nofile.js View 1 2 1 chunk +0 lines, -44 lines 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/common/permissions/permissions_data.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/common/permissions/permissions_data.cc View 1 2 3 4 5 1 chunk +14 lines, -12 lines 0 comments Download
M extensions/common/permissions/permissions_data_unittest.cc View 1 2 3 4 16 chunks +60 lines, -42 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
sadrul
I have only updated the existing tests, and not added any new test, since the ...
6 years, 11 months ago (2014-01-16 07:07:48 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/140433003/diff/150001/chrome/browser/extensions/active_tab_unittest.cc File chrome/browser/extensions/active_tab_unittest.cc (right): https://codereview.chromium.org/140433003/diff/150001/chrome/browser/extensions/active_tab_unittest.cc#newcode106 chrome/browser/extensions/active_tab_unittest.cc:106: return IsBothBlocked(extension, url, tab_id()); why do you need to ...
6 years, 11 months ago (2014-01-16 17:48:26 UTC) #2
not at google - send to devlin
https://codereview.chromium.org/140433003/diff/150001/extensions/common/permissions/permissions_data_unittest.cc File extensions/common/permissions/permissions_data_unittest.cc (right): https://codereview.chromium.org/140433003/diff/150001/extensions/common/permissions/permissions_data_unittest.cc#newcode342 extensions/common/permissions/permissions_data_unittest.cc:342: EXPECT_TRUE(CaptureOnly(extension.get(), settings_url)); On 2014/01/16 17:48:26, kalman wrote: > Ugh ...
6 years, 11 months ago (2014-01-16 18:57:13 UTC) #3
sadrul
https://codereview.chromium.org/140433003/diff/150001/extensions/common/permissions/permissions_data.cc File extensions/common/permissions/permissions_data.cc (right): https://codereview.chromium.org/140433003/diff/150001/extensions/common/permissions/permissions_data.cc#newcode545 extensions/common/permissions/permissions_data.cc:545: all_urls.SetMatchAllURLs(true); On 2014/01/16 17:48:26, kalman wrote: > you can ...
6 years, 11 months ago (2014-01-20 13:53:36 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/140433003/diff/150001/extensions/common/permissions/permissions_data.cc File extensions/common/permissions/permissions_data.cc (right): https://codereview.chromium.org/140433003/diff/150001/extensions/common/permissions/permissions_data.cc#newcode546 extensions/common/permissions/permissions_data.cc:546: if (tab_permissions.get() && On 2014/01/20 13:53:37, sadrul wrote: > ...
6 years, 11 months ago (2014-01-21 21:44:20 UTC) #5
sadrul
[ sorry about the long delay since last iteration ] https://codereview.chromium.org/140433003/diff/150001/extensions/common/permissions/permissions_data.cc File extensions/common/permissions/permissions_data.cc (right): https://codereview.chromium.org/140433003/diff/150001/extensions/common/permissions/permissions_data.cc#newcode546 ...
6 years, 11 months ago (2014-01-23 20:11:14 UTC) #6
not at google - send to devlin
lgtm https://codereview.chromium.org/140433003/diff/450001/extensions/common/permissions/permissions_data.cc File extensions/common/permissions/permissions_data.cc (right): https://codereview.chromium.org/140433003/diff/450001/extensions/common/permissions/permissions_data.cc#newcode546 extensions/common/permissions/permissions_data.cc:546: if (active_permissions && it's the tab-specific permissions that ...
6 years, 11 months ago (2014-01-23 20:16:35 UTC) #7
sadrul
https://codereview.chromium.org/140433003/diff/450001/extensions/common/permissions/permissions_data.cc File extensions/common/permissions/permissions_data.cc (right): https://codereview.chromium.org/140433003/diff/450001/extensions/common/permissions/permissions_data.cc#newcode546 extensions/common/permissions/permissions_data.cc:546: if (active_permissions && On 2014/01/23 20:16:35, kalman wrote: > ...
6 years, 11 months ago (2014-01-23 20:23:49 UTC) #8
sadrul
Committed patchset #6 manually as r246766 (presubmit successful).
6 years, 11 months ago (2014-01-24 01:30:18 UTC) #9
meacer
Drive by review: In the case of activeTab, the extension can inject cross origin frames ...
6 years, 11 months ago (2014-01-24 01:42:58 UTC) #10
sadrul
On 2014/01/24 01:42:58, Mustafa Emre Acer wrote: > Drive by review: In the case of ...
6 years, 11 months ago (2014-01-24 01:47:22 UTC) #11
meacer
On 2014/01/24 01:47:22, sadrul wrote: > On 2014/01/24 01:42:58, Mustafa Emre Acer wrote: > > ...
6 years, 11 months ago (2014-01-24 02:10:36 UTC) #12
mytele2
> tab capture: Change the permissions for tabs.captureVisibleTab(). > Require an extension to have '<all_urls>' ...
6 years, 9 months ago (2014-03-18 23:00:11 UTC) #13
sadrul
On 2014/03/18 23:00:11, mytele2 wrote: > > tab capture: Change the permissions for tabs.captureVisibleTab(). > ...
6 years, 9 months ago (2014-03-18 23:05:14 UTC) #14
mytele2
> What if you use 'activeTab' permission instead > http://developer.chrome.com/extensions/activeTab Would that work? Thanks for ...
6 years, 9 months ago (2014-03-18 23:53:21 UTC) #15
mytele2
No, doesn't work, only the following user gestures enable activeTab: Executing a browser action Executing ...
6 years, 9 months ago (2014-03-19 00:16:36 UTC) #16
not at google - send to devlin
On 2014/03/19 00:16:36, mytele2 wrote: > No, doesn't work, only the following user gestures enable ...
6 years, 9 months ago (2014-03-19 15:52:43 UTC) #17
not at google - send to devlin
> extension to be disabled, it's the same warning ("all your tabs and browsing > ...
6 years, 9 months ago (2014-03-19 15:53:20 UTC) #18
sandylamwork
On 2014/03/19 15:53:20, kalman wrote: > > extension to be disabled, it's the same warning ...
6 years, 8 months ago (2014-04-13 09:16:32 UTC) #19
not at google - send to devlin
6 years, 8 months ago (2014-04-14 17:59:08 UTC) #20
Message was sent while issue was closed.
On 2014/04/13 09:16:32, sandylamwork wrote:
> On 2014/03/19 15:53:20, kalman wrote:
> > > extension to be disabled, it's the same warning ("all your tabs and
browsing
> > > history").
> > 
> > "your data on all websites" rather.
> 
> Hello, will this be fixed and when??? This bug seriously affects our users
> (almost 400K). In our experience,  almost 1/3 of the users will forget to
enable
> the extension if it is disabled automatically due to permission change. This
is
> unfair since we did not change our permission at all. Please please please fix
> this bug. Thank you.

I don't know what bug you're referring to. Like I said above, http://*/* is the
same as <all_urls> for warnings and shouldn't cause the extension to be
disabled. If it does happen then file a bug rather than discussing it here.

Powered by Google App Engine
This is Rietveld 408576698