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

Issue 6480106: Add IPCs to check web copy/cut/paste for extensions with the appropriate permission bit. (Closed)

Created:
9 years, 10 months ago by dcheng
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Erik does not do reviews, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add IPCs to check web copy/cut/paste for extensions with the appropriate permission bit. BUG=73116 TEST=brower_tests --gtest_filter=ExtensionApiTest.Clipboard Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83990

Patch Set 1 #

Total comments: 1

Patch Set 2 : Prefix new methods with 'web'. #

Total comments: 4

Patch Set 3 : Move check to be based on ChromeURLRequestContext. #

Total comments: 5

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : Fix PermissionMessages unit test. #

Patch Set 9 : Do not checkin. #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : Fix minor alignment. #

Patch Set 13 : . #

Patch Set 14 : Move RenderView methods to match WebViewClient header. #

Total comments: 3

Patch Set 15 : Blah. #

Patch Set 16 : . #

Patch Set 17 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -11 lines) Patch
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/clipboard/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/clipboard/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
rniwa-cr
Thanks for the patch! http://codereview.chromium.org/6480106/diff/1/chrome/browser/extensions/extension_host.cc File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/6480106/diff/1/chrome/browser/extensions/extension_host.cc#newcode674 chrome/browser/extensions/extension_host.cc:674: return extension_->HasApiPermission(Extension::kClipboardPermission); Is extension_ origin ...
9 years, 10 months ago (2011-02-16 03:41:50 UTC) #1
dcheng
On 2011/02/16 03:41:50, rniwa-cr wrote: > Thanks for the patch! > > http://codereview.chromium.org/6480106/diff/1/chrome/browser/extensions/extension_host.cc > File ...
9 years, 10 months ago (2011-02-16 06:32:24 UTC) #2
Aaron Boodman
Thanks for doing this. I agree that ideally copy would require a permission, from a ...
9 years, 10 months ago (2011-02-16 21:52:34 UTC) #3
Aaron Boodman
On 2011/02/16 21:52:34, Aaron Boodman wrote: > A few other things to keep in mind ...
9 years, 10 months ago (2011-02-16 21:52:56 UTC) #4
rniwa-cr
On 2011/02/16 21:52:34, Aaron Boodman wrote: > I agree that ideally copy would require a ...
9 years, 10 months ago (2011-02-17 12:12:54 UTC) #5
dcheng
> 1. It would also be nice to fix content script access to copy/paste at ...
9 years, 10 months ago (2011-02-18 06:38:32 UTC) #6
Aaron Boodman
On 2011/02/18 06:38:32, dcheng wrote: > > 1. It would also be nice to fix ...
9 years, 10 months ago (2011-02-22 21:35:42 UTC) #7
Aaron Boodman
+mpcomplete http://codereview.chromium.org/6480106/diff/7001/chrome/browser/notifications/balloon_host.h File chrome/browser/notifications/balloon_host.h (left): http://codereview.chromium.org/6480106/diff/7001/chrome/browser/notifications/balloon_host.h#oldcode92 chrome/browser/notifications/balloon_host.h:92: virtual void StartDragging(const WebDropData& drop_data, rebase needed? http://codereview.chromium.org/6480106/diff/7001/chrome/browser/renderer_host/render_message_filter.cc ...
9 years, 10 months ago (2011-02-22 21:49:01 UTC) #8
rniwa-cr
On 2011/02/22 21:35:42, Aaron Boodman wrote: > You can distinguish. Content scripts run in an ...
9 years, 10 months ago (2011-02-23 02:06:36 UTC) #9
Aaron Boodman
On 2011/02/23 02:06:36, rniwa-cr wrote: > On 2011/02/22 21:35:42, Aaron Boodman wrote: > > You ...
9 years, 10 months ago (2011-02-23 02:21:45 UTC) #10
dcheng
I haven't uploaded the changes yet, so the comments regarding code changes are inaccurate. http://codereview.chromium.org/6480106/diff/7001/chrome/browser/notifications/balloon_host.h ...
9 years, 10 months ago (2011-02-23 02:33:37 UTC) #11
Aaron Boodman
On 2011/02/23 02:33:37, dcheng wrote: > I haven't uploaded the changes yet, so the comments ...
9 years, 10 months ago (2011-02-25 19:29:40 UTC) #12
Aaron Boodman
I thought about this some and chatted with Erik Kay. Our conclusion is that: 1) ...
9 years, 9 months ago (2011-03-03 22:39:29 UTC) #13
rniwa-cr
On 2011/03/03 22:39:29, Aaron Boodman wrote: > 1) We'd prefer separate permissions (eg clipboard-read and ...
9 years, 9 months ago (2011-03-04 00:31:41 UTC) #14
Aaron Boodman
On Thu, Mar 3, 2011 at 4:31 PM, <rniwa@chromium.org> wrote: > On 2011/03/03 22:39:29, Aaron ...
9 years, 9 months ago (2011-03-04 00:59:46 UTC) #15
rniwa-cr
On 2011/03/04 00:59:46, Aaron Boodman wrote: > Also, "clipboard-read" and "clipboard-write" are better because they ...
9 years, 9 months ago (2011-03-04 01:14:32 UTC) #16
Aaron Boodman
On 2011/03/04 01:14:32, rniwa-cr wrote: > On 2011/03/04 00:59:46, Aaron Boodman wrote: > > Also, ...
9 years, 9 months ago (2011-03-04 01:19:54 UTC) #17
dcheng
Mind taking another look at this patch?
9 years, 8 months ago (2011-04-15 23:20:24 UTC) #18
abarth-chromium
On 2011/04/15 23:20:24, dcheng wrote: > Mind taking another look at this patch? Are we ...
9 years, 8 months ago (2011-04-15 23:22:08 UTC) #19
rniwa
I don't think copy & paste should be triggered that often. I mean we could ...
9 years, 8 months ago (2011-04-15 23:27:46 UTC) #20
dcheng
On 2011/04/15 23:27:46, rniwa wrote: > I don't think copy & paste should be triggered ...
9 years, 8 months ago (2011-04-15 23:37:31 UTC) #21
dcheng
On 2011/04/15 23:37:31, dcheng wrote: > On 2011/04/15 23:27:46, rniwa wrote: > > I don't ...
9 years, 8 months ago (2011-04-16 01:35:16 UTC) #22
Aaron Boodman
lgtm
9 years, 8 months ago (2011-04-20 22:07:28 UTC) #23
dcheng
jam, mind taking a look at this patch for OWNERS LGTM? Thanks.
9 years, 8 months ago (2011-04-20 23:26:52 UTC) #24
dcheng
Mind taking one more look? I realized the original change wasn't allowing clipboard write to ...
9 years, 8 months ago (2011-04-25 19:33:01 UTC) #25
Aaron Boodman
Still lg. Thanks for fixing that.
9 years, 8 months ago (2011-04-26 23:36:36 UTC) #26
jam
content code doesn't know about extensions, since that's a chrome feature. so if this is ...
9 years, 8 months ago (2011-04-27 00:54:12 UTC) #27
dcheng
Many thanks to jam for the WebPermissionsClient changes. I've updated the change to use ChromeRenderViewObserver. ...
9 years, 7 months ago (2011-05-03 04:33:01 UTC) #28
jam
lgtm
9 years, 7 months ago (2011-05-03 05:50:11 UTC) #29
rniwa-cr
9 years, 7 months ago (2011-05-03 16:38:48 UTC) #30
On 2011/05/03 04:33:01, dcheng wrote:
> Would it be better to do something like this in ChromeRenderViewObserver
> instead?
>   return allowed || default_value;

Yes, you're supposed to do that or otherwise you'll break the existing
chrome.experimental.clipboard.

Powered by Google App Engine
This is Rietveld 408576698