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

Issue 789063002: Implement clipboardRead/Write content capabilities (Closed)

Created:
6 years ago by Ken Rockot(use gerrit already)
Modified:
6 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement clipboardRead/Write content capabilities This adds support for clipboardRead and clipboardWrite capability grants from white-listed extensions to web contents. BUG=409269 R=kalman@chromium.org Committed: https://crrev.com/e261b16ec7149db6debc70a47f93b20abc8de334 Cr-Commit-Position: refs/heads/master@{#308022}

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : merge up #

Patch Set 7 : formatting #

Patch Set 8 : #

Patch Set 9 : fix id generation in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -42 lines) Patch
A chrome/browser/extensions/content_capabilities_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +163 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 1 2 3 4 5 2 chunks +4 lines, -10 lines 0 comments Download
A + chrome/test/data/extensions/content_capabilities/bar.example.com.html View 1 chunk +1 line, -4 lines 0 comments Download
A chrome/test/data/extensions/content_capabilities/capability_tests.js View 1 chunk +17 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/content_capabilities/foo.example.com.html View 1 chunk +1 line, -4 lines 0 comments Download
M extensions/common/manifest_handlers/content_capabilities_handler.cc View 1 2 3 4 5 6 2 chunks +11 lines, -3 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 chunk +8 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 5 6 3 chunks +32 lines, -21 lines 0 comments Download
M extensions/renderer/script_context.h View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M extensions/renderer/script_context.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
Ken Rockot(use gerrit already)
Here's a first pass at implementation. Saving unlimitedStorage for a future CL.
6 years ago (2014-12-10 02:00:31 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/789063002/diff/20001/chrome/browser/extensions/content_capabilities_browsertest.cc File chrome/browser/extensions/content_capabilities_browsertest.cc (right): https://codereview.chromium.org/789063002/diff/20001/chrome/browser/extensions/content_capabilities_browsertest.cc#newcode73 chrome/browser/extensions/content_capabilities_browsertest.cc:73: list = "\"" + list + "\""; This is ...
6 years ago (2014-12-10 17:33:55 UTC) #2
Ken Rockot(use gerrit already)
https://codereview.chromium.org/789063002/diff/20001/chrome/browser/extensions/content_capabilities_browsertest.cc File chrome/browser/extensions/content_capabilities_browsertest.cc (right): https://codereview.chromium.org/789063002/diff/20001/chrome/browser/extensions/content_capabilities_browsertest.cc#newcode73 chrome/browser/extensions/content_capabilities_browsertest.cc:73: list = "\"" + list + "\""; On 2014/12/10 ...
6 years ago (2014-12-10 18:31:41 UTC) #3
Ken Rockot(use gerrit already)
(I actually ended up failing at copy detection again, but w/e)
6 years ago (2014-12-10 18:31:55 UTC) #4
not at google - send to devlin
lgtm https://codereview.chromium.org/789063002/diff/20001/chrome/browser/extensions/content_capabilities_browsertest.cc File chrome/browser/extensions/content_capabilities_browsertest.cc (right): https://codereview.chromium.org/789063002/diff/20001/chrome/browser/extensions/content_capabilities_browsertest.cc#newcode155 chrome/browser/extensions/content_capabilities_browsertest.cc:155: EXPECT_TRUE(result); On 2014/12/10 18:31:41, Ken Rockot wrote: > ...
6 years ago (2014-12-10 19:30:07 UTC) #5
Ken Rockot(use gerrit already)
> The value in testing::AssertionResult is that it maintains stack trace, and it > preserves ...
6 years ago (2014-12-10 20:40:25 UTC) #6
Ken Rockot(use gerrit already)
+sky: could you please take a look at chrome/renderer/content_settings_observer.cc?
6 years ago (2014-12-10 20:41:39 UTC) #8
not at google - send to devlin
> > I see. Given the simplicity of these methods for now I'm going to ...
6 years ago (2014-12-10 20:52:53 UTC) #9
sky
https://codereview.chromium.org/789063002/diff/60001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): https://codereview.chromium.org/789063002/diff/60001/chrome/renderer/content_settings_observer.cc#newcode418 chrome/renderer/content_settings_observer.cc:418: allowed = calling_context->HasContentCapability( I'm not familiar enough with extension ...
6 years ago (2014-12-10 22:05:31 UTC) #10
not at google - send to devlin
https://codereview.chromium.org/789063002/diff/60001/chrome/renderer/content_settings_observer.cc File chrome/renderer/content_settings_observer.cc (right): https://codereview.chromium.org/789063002/diff/60001/chrome/renderer/content_settings_observer.cc#newcode418 chrome/renderer/content_settings_observer.cc:418: allowed = calling_context->HasContentCapability( On 2014/12/10 22:05:31, sky wrote: > ...
6 years ago (2014-12-10 22:11:34 UTC) #11
Ken Rockot(use gerrit already)
On 2014/12/10 22:11:34, kalman wrote: > https://codereview.chromium.org/789063002/diff/60001/chrome/renderer/content_settings_observer.cc > File chrome/renderer/content_settings_observer.cc (right): > > https://codereview.chromium.org/789063002/diff/60001/chrome/renderer/content_settings_observer.cc#newcode418 > ...
6 years ago (2014-12-10 22:14:15 UTC) #13
Ken Rockot(use gerrit already)
+thestig for //chrome perhaps?
6 years ago (2014-12-10 22:15:49 UTC) #14
Lei Zhang
On 2014/12/10 22:15:49, Ken Rockot wrote: > +thestig for //chrome perhaps? Can you and kalman ...
6 years ago (2014-12-10 23:01:02 UTC) #15
Ken Rockot(use gerrit already)
On 2014/12/10 23:01:02, Lei Zhang wrote: > On 2014/12/10 22:15:49, Ken Rockot wrote: > > ...
6 years ago (2014-12-10 23:20:42 UTC) #16
not at google - send to devlin
lgtm
6 years ago (2014-12-10 23:22:56 UTC) #17
Lei Zhang
chrome/ lgtm
6 years ago (2014-12-10 23:42:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789063002/120001
6 years ago (2014-12-11 01:40:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789063002/140001
6 years ago (2014-12-11 02:54:41 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/13610)
6 years ago (2014-12-11 05:26:24 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:160001)
6 years ago (2014-12-12 01:59:56 UTC) #28
commit-bot: I haz the power
6 years ago (2014-12-12 02:00:49 UTC) #29
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e261b16ec7149db6debc70a47f93b20abc8de334
Cr-Commit-Position: refs/heads/master@{#308022}

Powered by Google App Engine
This is Rietveld 408576698