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

Issue 22793018: <webview>: Implement support for package-local chrome-extension:// URLs (Closed)

Created:
7 years, 4 months ago by Fady Samuel
Modified:
7 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

<webview>: Implement support for package-local chrome-extension:// URLs Add a new object to manifest.json: "webview": { 'accessible_resources': [ // List of files and URL patterns go here. ], 'privileged_partitions': [ // List of partition wildcards go here. ] } BUG=157626 Test=WebViewTest.Shim_TestChromeExtensionURL, WebViewTest.Shim_TestLoadAbortChromeExtensionURLWrongPartition Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225896

Patch Set 1 #

Patch Set 2 : Works in debug more #

Patch Set 3 : Supports new style manifest #

Patch Set 4 : Added loadabort test. Adding load test next #

Patch Set 5 : Added a test to verify that a privileged partition can access a local resource #

Total comments: 14

Patch Set 6 : Addressed comments #

Total comments: 2

Patch Set 7 : Updated #

Total comments: 10

Patch Set 8 : Addressed nits #

Patch Set 9 : Added a comment #

Total comments: 1

Patch Set 10 : Always install default protocol handlers #

Patch Set 11 : Added missing include #

Patch Set 12 : Adding missing include #

Patch Set 13 : Fix test that broken #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -14 lines) Patch
M chrome/browser/apps/web_view_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_protocols.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_renderer_state.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/guestview/webview/webview_guest.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -13 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/common/extensions/webview_handler.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/common/extensions/webview_handler.cc View 1 2 3 4 5 6 7 1 chunk +131 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/main.js View 1 2 3 4 5 4 chunks +36 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/shim/manifest.json View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
Fady Samuel
Not quite ready for review. Adding creis@ for informational purposes.
7 years, 3 months ago (2013-08-26 16:18:55 UTC) #1
Fady Samuel
creis: render_view_host_manager.cc, profile_impl_io_data.cc mpcomplete: chrome changes, this API is only exposed to dev. Will send ...
7 years, 3 months ago (2013-09-24 15:23:29 UTC) #2
Charlie Reis
Nasko, I've got a question for you below. https://codereview.chromium.org/22793018/diff/12001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/22793018/diff/12001/chrome/browser/profiles/profile_impl_io_data.cc#newcode597 chrome/browser/profiles/profile_impl_io_data.cc:597: job_factory->SetProtocolHandler( ...
7 years, 3 months ago (2013-09-24 19:41:55 UTC) #3
nasko
Just answered Charlie's question and haven't reviewed other code. One remark: We have hard time ...
7 years, 3 months ago (2013-09-24 20:02:01 UTC) #4
Matt Perry
https://codereview.chromium.org/22793018/diff/12001/chrome/browser/extensions/extension_protocols.cc File chrome/browser/extensions/extension_protocols.cc (right): https://codereview.chromium.org/22793018/diff/12001/chrome/browser/extensions/extension_protocols.cc#newcode343 chrome/browser/extensions/extension_protocols.cc:343: ExtensionRendererState* renderer_state = Is there a reason you put ...
7 years, 3 months ago (2013-09-24 21:06:53 UTC) #5
Fady Samuel
PTAL https://codereview.chromium.org/22793018/diff/12001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/22793018/diff/12001/chrome/browser/profiles/profile_impl_io_data.cc#newcode597 chrome/browser/profiles/profile_impl_io_data.cc:597: job_factory->SetProtocolHandler( On 2013/09/24 20:02:01, nasko wrote: > On ...
7 years, 3 months ago (2013-09-24 23:05:02 UTC) #6
Matt Perry
https://codereview.chromium.org/22793018/diff/12001/chrome/browser/extensions/extension_protocols.cc File chrome/browser/extensions/extension_protocols.cc (right): https://codereview.chromium.org/22793018/diff/12001/chrome/browser/extensions/extension_protocols.cc#newcode343 chrome/browser/extensions/extension_protocols.cc:343: ExtensionRendererState* renderer_state = On 2013/09/24 21:06:54, Matt Perry wrote: ...
7 years, 3 months ago (2013-09-24 23:09:29 UTC) #7
Fady Samuel
PTAL mpcomplete. creis for profile_io_data_impl: I'm looking into a refactor for profile_impl_io_data in another CL. ...
7 years, 3 months ago (2013-09-24 23:35:15 UTC) #8
Fady Samuel
https://codereview.chromium.org/22793018/diff/26001/chrome/common/extensions/webview_accessible_resources_handler.h File chrome/common/extensions/webview_accessible_resources_handler.h (right): https://codereview.chromium.org/22793018/diff/26001/chrome/common/extensions/webview_accessible_resources_handler.h#newcode18 chrome/common/extensions/webview_accessible_resources_handler.h:18: struct WebviewAccessibleResourcesInfo : public Extension::ManifestData { On 2013/09/24 23:09:29, ...
7 years, 3 months ago (2013-09-24 23:35:38 UTC) #9
Matt Perry
couple small changes, then extensions lgtm https://codereview.chromium.org/22793018/diff/34001/chrome/common/extensions/api/_manifest_features.json File chrome/common/extensions/api/_manifest_features.json (right): https://codereview.chromium.org/22793018/diff/34001/chrome/common/extensions/api/_manifest_features.json#newcode380 chrome/common/extensions/api/_manifest_features.json:380: "extension_types": ["platform_app"] add ...
7 years, 3 months ago (2013-09-25 01:13:54 UTC) #10
Fady Samuel
Addressed extension nits. This CL is now just pending a profile_impl_io_data refactor. I'll send that ...
7 years, 3 months ago (2013-09-25 03:29:31 UTC) #11
Matt Perry
https://codereview.chromium.org/22793018/diff/46001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/22793018/diff/46001/chrome/browser/profiles/profile_impl_io_data.cc#newcode592 chrome/browser/profiles/profile_impl_io_data.cc:592: top_job_factory = SetUpJobFactoryDefaults( As discussed offline, maybe we should ...
7 years, 2 months ago (2013-09-27 16:41:09 UTC) #12
Fady Samuel
On 2013/09/27 16:41:09, Matt Perry wrote: > https://codereview.chromium.org/22793018/diff/46001/chrome/browser/profiles/profile_impl_io_data.cc > File chrome/browser/profiles/profile_impl_io_data.cc (right): > > https://codereview.chromium.org/22793018/diff/46001/chrome/browser/profiles/profile_impl_io_data.cc#newcode592 ...
7 years, 2 months ago (2013-09-27 17:28:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/51001
7 years, 2 months ago (2013-09-27 17:31:21 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=27800
7 years, 2 months ago (2013-09-27 17:49:31 UTC) #15
awong
LGTM for ProfileIOData. However, as a follow up, off this CL, I'd like to understand ...
7 years, 2 months ago (2013-09-27 17:51:32 UTC) #16
Fady Samuel
On 2013/09/27 17:51:32, awong wrote: > LGTM for ProfileIOData. However, as a follow up, off ...
7 years, 2 months ago (2013-09-27 17:55:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/51001
7 years, 2 months ago (2013-09-27 17:56:29 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-09-27 18:23:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/51001
7 years, 2 months ago (2013-09-27 18:27:17 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-09-27 19:07:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/46002
7 years, 2 months ago (2013-09-27 20:26:58 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=173165
7 years, 2 months ago (2013-09-27 21:46:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/46002
7 years, 2 months ago (2013-09-27 21:58:41 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=173237
7 years, 2 months ago (2013-09-27 23:31:56 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/46002
7 years, 2 months ago (2013-09-27 23:37:16 UTC) #26
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=173005
7 years, 2 months ago (2013-09-28 00:50:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/46002
7 years, 2 months ago (2013-09-28 01:06:41 UTC) #28
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=173026
7 years, 2 months ago (2013-09-28 01:55:26 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/46002
7 years, 2 months ago (2013-09-28 01:56:51 UTC) #30
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=173040
7 years, 2 months ago (2013-09-28 02:54:28 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/46002
7 years, 2 months ago (2013-09-28 03:11:04 UTC) #32
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=173055
7 years, 2 months ago (2013-09-28 03:53:23 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/46002
7 years, 2 months ago (2013-09-28 05:21:21 UTC) #34
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=173068
7 years, 2 months ago (2013-09-28 06:02:01 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/137001
7 years, 2 months ago (2013-09-28 13:06:27 UTC) #36
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=173413
7 years, 2 months ago (2013-09-28 14:27:32 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/137001
7 years, 2 months ago (2013-09-28 15:41:52 UTC) #38
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=173437
7 years, 2 months ago (2013-09-28 16:46:15 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/137001
7 years, 2 months ago (2013-09-28 17:55:05 UTC) #40
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=160175
7 years, 2 months ago (2013-09-28 19:16:37 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/137001
7 years, 2 months ago (2013-09-28 20:36:51 UTC) #42
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=173474
7 years, 2 months ago (2013-09-28 21:36:47 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/22793018/137001
7 years, 2 months ago (2013-09-29 15:43:00 UTC) #44
commit-bot: I haz the power
7 years, 2 months ago (2013-09-29 18:05:11 UTC) #45
Message was sent while issue was closed.
Change committed as 225896

Powered by Google App Engine
This is Rietveld 408576698