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

Issue 404883002: Allow extension APIs to be called from WebUI. (Closed)

Created:
6 years, 5 months ago by not at google - send to devlin
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, Fady Samuel, lazyboy, Devlin
Project:
chromium
Visibility:
Public.

Description

Allow extension APIs to be called from WebUI. The only API currently available is chrome.test, but the internal APIs used for <webview> and <extensionoptions> will be next. It also provides an alternative to chrome.send in theory. BUG=391944 R=rockot@chromium.org, jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285217

Patch Set 1 #

Total comments: 4

Patch Set 2 : ken #

Total comments: 9

Patch Set 3 : creis #

Patch Set 4 : add another notreached #

Patch Set 5 : rebase #

Patch Set 6 : fix tests #

Patch Set 7 : android compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -93 lines) Patch
M chrome/browser/extensions/extension_test_message_listener.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_test_message_listener.cc View 2 chunks +11 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_webui_apitest.cc View 1 chunk +143 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/webui/on_message.js View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/webui/runtime_last_error.js View 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/webui/sanity_check_available_apis.js View 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/webui/send_message.js View 1 chunk +16 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.h View 2 chunks +1 line, -5 lines 0 comments Download
M content/public/browser/child_process_security_policy.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/api/test/test_api.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/api/test/test_api.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/event_router.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/event_router.cc View 1 2 2 chunks +56 lines, -28 lines 0 comments Download
M extensions/browser/extension_function_dispatcher.h View 2 chunks +0 lines, -7 lines 0 comments Download
M extensions/browser/extension_function_dispatcher.cc View 1 2 3 8 chunks +54 lines, -35 lines 0 comments Download
M extensions/common/api/_api_features.json View 3 chunks +23 lines, -3 lines 0 comments Download
M extensions/common/extension_api.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/extension_api.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/extension_api_stub.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/features/feature.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/features/simple_feature.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/common/features/simple_feature_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 3 chunks +8 lines, -10 lines 0 comments Download
M extensions/renderer/resources/binding.js View 1 2 3 4 5 1 chunk +29 lines, -3 lines 0 comments Download
M extensions/renderer/resources/runtime_custom_bindings.js View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/renderer/script_context.cc View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
not at google - send to devlin
rockot - please review all the extension things. jam - please review my content API ...
6 years, 5 months ago (2014-07-18 19:03:23 UTC) #1
not at google - send to devlin
On 2014/07/18 19:03:23, kalman wrote: > rockot - please review all the extension things. > ...
6 years, 5 months ago (2014-07-18 19:05:33 UTC) #2
Ken Rockot(use gerrit already)
extensions lgtm https://codereview.chromium.org/404883002/diff/1/extensions/browser/event_router.h File extensions/browser/event_router.h (right): https://codereview.chromium.org/404883002/diff/1/extensions/browser/event_router.h#newcode326 extensions/browser/event_router.h:326: // NOTE: the Extension argument to this ...
6 years, 5 months ago (2014-07-18 22:33:40 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/404883002/diff/1/extensions/browser/event_router.h File extensions/browser/event_router.h (right): https://codereview.chromium.org/404883002/diff/1/extensions/browser/event_router.h#newcode326 extensions/browser/event_router.h:326: // NOTE: the Extension argument to this may be ...
6 years, 5 months ago (2014-07-18 23:28:35 UTC) #4
Ken Rockot(use gerrit already)
GREAT.
6 years, 5 months ago (2014-07-18 23:39:24 UTC) #5
not at google - send to devlin
New week --> inbox bubble. Charlie since you're back you might want to have a ...
6 years, 5 months ago (2014-07-21 16:52:52 UTC) #6
jam
someone from security should look at this, randomly picking Justin
6 years, 5 months ago (2014-07-21 17:25:17 UTC) #7
jschuh
On 2014/07/21 17:25:17, jam wrote: > someone from security should look at this, randomly picking ...
6 years, 5 months ago (2014-07-21 23:56:48 UTC) #8
Charlie Reis
On 2014/07/21 16:52:52, kalman wrote: > New week --> inbox bubble. > > Charlie since ...
6 years, 5 months ago (2014-07-22 20:43:51 UTC) #9
not at google - send to devlin
Thanks. I've implemented the URL restriction, but it turned out to be a very large ...
6 years, 5 months ago (2014-07-22 21:01:09 UTC) #10
Charlie Reis
The general plan sounds good, since WebUI processes are already more privileged than extensions. I ...
6 years, 5 months ago (2014-07-22 21:10:24 UTC) #11
jschuh
I'm fine with the URL matching in a follow-up, so lgtm in principle. I defer ...
6 years, 5 months ago (2014-07-22 23:09:51 UTC) #12
not at google - send to devlin
Thanks all. jam@ - are the content changes reasonable? https://codereview.chromium.org/404883002/diff/20001/content/public/browser/child_process_security_policy.h File content/public/browser/child_process_security_policy.h (right): https://codereview.chromium.org/404883002/diff/20001/content/public/browser/child_process_security_policy.h#newcode149 content/public/browser/child_process_security_policy.h:149: ...
6 years, 5 months ago (2014-07-22 23:42:33 UTC) #13
not at google - send to devlin
ping @jam
6 years, 5 months ago (2014-07-24 00:49:02 UTC) #14
jam
content lgtm, sorry for the delay
6 years, 5 months ago (2014-07-24 01:23:38 UTC) #15
not at google - send to devlin
The CQ bit was checked by kalman@chromium.org
6 years, 5 months ago (2014-07-24 01:26:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/404883002/120001
6 years, 5 months ago (2014-07-24 01:28:34 UTC) #17
commit-bot: I haz the power
6 years, 5 months ago (2014-07-24 12:48:14 UTC) #18
Message was sent while issue was closed.
Change committed as 285217

Powered by Google App Engine
This is Rietveld 408576698