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

Issue 2259903002: Enforce capability spec renderer <--> browser (Closed)

Created:
4 years, 4 months ago by Ben Goodger (Google)
Modified:
4 years, 3 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enforce capability spec renderer <--> browser. This implements: - allows the content embedder to merge a manifest into the base ones provided by content, allowing it to add to the list of interfaces exposed to the renderer. - adds such an overlay to chrome/browser So.. from now on if you add an interface to either the browser/renderer, you'll need to list it in the manifest. I wonder how we should broadcast this. Also as a separate step we should require these manifests get security review. R=rockot@chromium.org,tsepez@chromium.org Committed: https://crrev.com/4ea17059bf78553528f3ffb4a9de84a447622fd3 Committed: https://crrev.com/807a926c9ca02ac8ae1b52e82537834ef78fb9ba Committed: https://crrev.com/91c25a3cedc4fadcb8c84e91cc59a8f90411058a Committed: https://crrev.com/cdf40b4b434b43af6accf0c822ea964bc6bfd931 Committed: https://crrev.com/8b277b0bd73aa544f0d5e38a8763658d3e807880 Committed: https://crrev.com/c70c0e365340a5426fa1f68f0f8c7008cb94bf5e Cr-Original-Original-Original-Original-Original-Commit-Position: refs/heads/master@{#418282} Cr-Original-Original-Original-Original-Commit-Position: refs/heads/master@{#418398} Cr-Original-Original-Original-Commit-Position: refs/heads/master@{#418582} Cr-Original-Original-Commit-Position: refs/heads/master@{#418691} Cr-Original-Commit-Position: refs/heads/master@{#418988} Cr-Commit-Position: refs/heads/master@{#420257}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 4

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Total comments: 1

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Total comments: 2

Patch Set 19 : . #

Patch Set 20 : . #

Patch Set 21 : . #

Patch Set 22 : . #

Patch Set 23 : . #

Patch Set 24 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -148 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +18 lines, -0 lines 0 comments Download
A chrome/browser/content_browser_manifest_overlay.json View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
A content/browser/mojo/merge_dictionary.h View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
A content/browser/mojo/merge_dictionary.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +43 lines, -0 lines 0 comments Download
A content/browser/mojo/merge_dictionary_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +73 lines, -0 lines 0 comments Download
M content/browser/mojo/mojo_shell_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +44 lines, -45 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +1 line, -1 line 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -2 lines 0 comments Download
D content/common/mojo/constants.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -20 lines 0 comments Download
D content/common/mojo/constants.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -34 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
A content/public/app/mojo/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +24 lines, -2 lines 0 comments Download
M content/public/app/mojo/content_renderer_manifest.json View 1 2 3 4 5 1 chunk +10 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +6 lines, -10 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/common/BUILD.gn 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
A + content/public/common/service_names.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
A + content/public/common/service_names.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M services/catalog/manifest_provider.h View 2 chunks +4 lines, -3 lines 0 comments Download
M services/catalog/reader.cc View 1 2 1 chunk +16 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 139 (98 generated)
Ben Goodger (Google)
4 years, 3 months ago (2016-09-09 23:16:03 UTC) #30
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2259903002/diff/140001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2259903002/diff/140001/chrome/browser/chrome_content_browser_client.cc#newcode2974 chrome/browser/chrome_content_browser_client.cc:2974: if (name == "exe:content_browser") Hmm. Guess we should ...
4 years, 3 months ago (2016-09-09 23:26:41 UTC) #31
Tom Sepez
https://codereview.chromium.org/2259903002/diff/140001/chrome/browser/content_browser_manifest_overlay.json File chrome/browser/content_browser_manifest_overlay.json (right): https://codereview.chromium.org/2259903002/diff/140001/chrome/browser/content_browser_manifest_overlay.json#newcode1 chrome/browser/content_browser_manifest_overlay.json:1: { Can we update the OWNERS file to list ...
4 years, 3 months ago (2016-09-12 16:53:16 UTC) #34
Tom Sepez
https://codereview.chromium.org/2259903002/diff/140001/content/browser/mojo/mojo_shell_context.cc File content/browser/mojo/mojo_shell_context.cc (right): https://codereview.chromium.org/2259903002/diff/140001/content/browser/mojo/mojo_shell_context.cc#newcode105 content/browser/mojo/mojo_shell_context.cc:105: void MergeDictionary(base::DictionaryValue* target, On 2016/09/12 16:53:16, Tom Sepez (ooo ...
4 years, 3 months ago (2016-09-12 16:54:27 UTC) #35
Ben Goodger (Google)
On 2016/09/12 16:53:16, Tom Sepez wrote: https://codereview.chromium.org/2259903002/diff/140001/content/browser/mojo/mojo_shell_context.cc#newcode105 > content/browser/mojo/mojo_shell_context.cc:105: void > MergeDictionary(base::DictionaryValue* target, > Nit: ...
4 years, 3 months ago (2016-09-12 18:11:55 UTC) #36
Ben Goodger (Google)
On 2016/09/12 18:11:55, Ben Goodger (Google) wrote: > On 2016/09/12 16:53:16, Tom Sepez wrote: > ...
4 years, 3 months ago (2016-09-12 18:19:45 UTC) #37
Ben Goodger (Google)
On 2016/09/12 18:19:45, Ben Goodger (Google) wrote: > On 2016/09/12 18:11:55, Ben Goodger (Google) wrote: ...
4 years, 3 months ago (2016-09-12 23:37:40 UTC) #41
Tom Sepez
Very nice, I think this will make things better even in a world where the ...
4 years, 3 months ago (2016-09-13 16:19:31 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259903002/200001
4 years, 3 months ago (2016-09-13 17:19:13 UTC) #52
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 3 months ago (2016-09-13 17:24:35 UTC) #54
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/4ea17059bf78553528f3ffb4a9de84a447622fd3 Cr-Commit-Position: refs/heads/master@{#418282}
4 years, 3 months ago (2016-09-13 17:26:17 UTC) #56
lazyboy
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2339593002/ by lazyboy@chromium.org. ...
4 years, 3 months ago (2016-09-13 18:29:52 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259903002/220001
4 years, 3 months ago (2016-09-13 21:39:09 UTC) #61
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 3 months ago (2016-09-13 22:53:24 UTC) #63
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/807a926c9ca02ac8ae1b52e82537834ef78fb9ba Cr-Commit-Position: refs/heads/master@{#418398}
4 years, 3 months ago (2016-09-13 22:56:01 UTC) #65
lazyboy
On 2016/09/13 22:56:01, commit-bot: I haz the power wrote: > Patchset 12 (id:??) landed as ...
4 years, 3 months ago (2016-09-13 23:24:37 UTC) #66
scottmg
On 2016/09/13 23:24:37, lazyboy wrote: > On 2016/09/13 22:56:01, commit-bot: I haz the power wrote: ...
4 years, 3 months ago (2016-09-13 23:26:11 UTC) #67
Ben Goodger (Google)
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/2335423002/ by ben@chromium.org. ...
4 years, 3 months ago (2016-09-13 23:39:22 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259903002/260001
4 years, 3 months ago (2016-09-14 16:22:51 UTC) #76
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 3 months ago (2016-09-14 16:29:25 UTC) #78
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/91c25a3cedc4fadcb8c84e91cc59a8f90411058a Cr-Commit-Position: refs/heads/master@{#418582}
4 years, 3 months ago (2016-09-14 16:33:33 UTC) #80
jbroman
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/2341633003/ by jbroman@chromium.org. ...
4 years, 3 months ago (2016-09-14 17:16:19 UTC) #81
msw
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/2342523003/ by msw@chromium.org. ...
4 years, 3 months ago (2016-09-14 18:17:40 UTC) #82
oystein (OOO til 10th of July)
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/2346593002/ by oysteine@chromium.org. ...
4 years, 3 months ago (2016-09-14 20:36:37 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259903002/280001
4 years, 3 months ago (2016-09-14 21:07:28 UTC) #87
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 3 months ago (2016-09-14 22:06:46 UTC) #89
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/cdf40b4b434b43af6accf0c822ea964bc6bfd931 Cr-Commit-Position: refs/heads/master@{#418691}
4 years, 3 months ago (2016-09-14 22:10:39 UTC) #91
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2259903002/diff/280001/content/browser/mojo/merge_dictionary.cc File content/browser/mojo/merge_dictionary.cc (right): https://codereview.chromium.org/2259903002/diff/280001/content/browser/mojo/merge_dictionary.cc#newcode28 content/browser/mojo/merge_dictionary.cc:28: CHECK(target->GetListWithoutPathExpansion(it.key(), &target_list)); Likely this CHECK will be hit, which ...
4 years, 3 months ago (2016-09-14 22:15:17 UTC) #92
Ben Goodger (Google)
A revert of this CL (patchset #15 id:280001) has been created in https://codereview.chromium.org/2336043008/ by ben@chromium.org. ...
4 years, 3 months ago (2016-09-14 22:38:51 UTC) #93
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259903002/340001
4 years, 3 months ago (2016-09-15 19:53:09 UTC) #101
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2259903002/diff/340001/content/browser/mojo/merge_dictionary.cc File content/browser/mojo/merge_dictionary.cc (right): https://codereview.chromium.org/2259903002/diff/340001/content/browser/mojo/merge_dictionary.cc#newcode32 content/browser/mojo/merge_dictionary.cc:32: CHECK(merge_list->GetString(i, &value)); Any reason to enforce that every list ...
4 years, 3 months ago (2016-09-15 20:08:46 UTC) #102
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259903002/360001
4 years, 3 months ago (2016-09-15 20:32:08 UTC) #106
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 3 months ago (2016-09-15 21:39:51 UTC) #108
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/8b277b0bd73aa544f0d5e38a8763658d3e807880 Cr-Commit-Position: refs/heads/master@{#418988}
4 years, 3 months ago (2016-09-15 21:42:14 UTC) #110
tommycli
A revert of this CL (patchset #19 id:360001) has been created in https://codereview.chromium.org/2346803004/ by tommycli@chromium.org. ...
4 years, 3 months ago (2016-09-16 16:40:40 UTC) #111
blundell
When you reland this, could you update it with https://codereview.chromium.org/2340373003/ (adding device::mojom::TimeZoneMonitor to the browser's ...
4 years, 3 months ago (2016-09-18 18:49:59 UTC) #113
Ben Goodger (Google)
Ken: mojo_shell_context.cc
4 years, 3 months ago (2016-09-21 23:00:49 UTC) #131
Ken Rockot(use gerrit already)
LGTM
4 years, 3 months ago (2016-09-22 00:00:59 UTC) #132
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259903002/460001
4 years, 3 months ago (2016-09-22 03:44:51 UTC) #135
commit-bot: I haz the power
Committed patchset #24 (id:460001)
4 years, 3 months ago (2016-09-22 03:51:32 UTC) #137
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 03:54:55 UTC) #139
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/c70c0e365340a5426fa1f68f0f8c7008cb94bf5e
Cr-Commit-Position: refs/heads/master@{#420257}

Powered by Google App Engine
This is Rietveld 408576698