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

Issue 2912883004: [Extensions Bindings] Don't allow `event` module with native bindings (Closed)

Created:
3 years, 6 months ago by Devlin
Modified:
3 years, 6 months ago
Reviewers:
lazyboy, jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Bindings] Don't allow `event` module with native bindings With native bindings, events should be constructed with the through the native hooks, rather than the JS event implementation. Don't include the event JS module when native bindings are enabled. This requires updating bindings code used in native bindings browser tests that currently relies on the event module, most notably webviews. Provide the native functionality to create a declarative event through the JS hooks, and include a webview id with declarative events. Also avoid subclassing the event class in the JS custom hooks for both native and JS-based bindings. Finally, remove some stale require()s where they were unnecessary. BUG=653596 Review-Url: https://codereview.chromium.org/2912883004 Cr-Commit-Position: refs/heads/master@{#479183} Committed: https://chromium.googlesource.com/chromium/src/+/3e46aa6ced2554cd07a7cc9aad1ec98b384dff07

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : jbroman's #

Total comments: 6

Patch Set 3 : lazyboy's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -120 lines) Patch
M chrome/renderer/resources/extensions/web_view/chrome_web_view.js View 1 2 4 chunks +56 lines, -58 lines 0 comments Download
M extensions/renderer/api_binding.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/api_binding_js_util.h View 1 2 4 chunks +10 lines, -4 lines 0 comments Download
M extensions/renderer/api_binding_js_util.cc View 1 2 3 chunks +22 lines, -1 line 0 comments Download
M extensions/renderer/declarative_event.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M extensions/renderer/declarative_event.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M extensions/renderer/declarative_event_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M extensions/renderer/resources/app_runtime_custom_bindings.js View 1 2 chunks +6 lines, -5 lines 0 comments Download
M extensions/renderer/resources/app_window_custom_bindings.js View 4 chunks +13 lines, -3 lines 0 comments Download
M extensions/renderer/resources/guest_view/guest_view.js View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/renderer/resources/guest_view/guest_view_events.js View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/renderer/resources/guest_view/web_view/web_view_events.js View 4 chunks +51 lines, -37 lines 0 comments Download

Messages

Total messages: 33 (25 generated)
Devlin
Heya folks, mind taking a look?
3 years, 6 months ago (2017-06-03 01:10:41 UTC) #13
Devlin
friendly ping :)
3 years, 6 months ago (2017-06-09 20:26:52 UTC) #14
jbroman
lgtm Sorry for missing this. https://codereview.chromium.org/2912883004/diff/40001/extensions/renderer/module_system.cc File extensions/renderer/module_system.cc (right): https://codereview.chromium.org/2912883004/diff/40001/extensions/renderer/module_system.cc#newcode848 extensions/renderer/module_system.cc:848: super-nit: accidental change? https://codereview.chromium.org/2912883004/diff/40001/extensions/renderer/resources/app_runtime_custom_bindings.js ...
3 years, 6 months ago (2017-06-12 15:09:49 UTC) #16
Devlin
https://codereview.chromium.org/2912883004/diff/40001/extensions/renderer/module_system.cc File extensions/renderer/module_system.cc (right): https://codereview.chromium.org/2912883004/diff/40001/extensions/renderer/module_system.cc#newcode848 extensions/renderer/module_system.cc:848: On 2017/06/12 15:09:48, jbroman wrote: > super-nit: accidental change? ...
3 years, 6 months ago (2017-06-12 20:30:14 UTC) #17
lazyboy
lgtm https://codereview.chromium.org/2912883004/diff/60001/chrome/renderer/resources/extensions/web_view/chrome_web_view.js File chrome/renderer/resources/extensions/web_view/chrome_web_view.js (right): https://codereview.chromium.org/2912883004/diff/60001/chrome/renderer/resources/extensions/web_view/chrome_web_view.js#newcode42 chrome/renderer/resources/extensions/web_view/chrome_web_view.js:42: function getContextMenusOnClickedEvent(webViewInstanceId, nit: s/get/create https://codereview.chromium.org/2912883004/diff/60001/extensions/renderer/api_binding_js_util.h File extensions/renderer/api_binding_js_util.h (right): ...
3 years, 6 months ago (2017-06-13 17:46:01 UTC) #22
Devlin
https://codereview.chromium.org/2912883004/diff/60001/chrome/renderer/resources/extensions/web_view/chrome_web_view.js File chrome/renderer/resources/extensions/web_view/chrome_web_view.js (right): https://codereview.chromium.org/2912883004/diff/60001/chrome/renderer/resources/extensions/web_view/chrome_web_view.js#newcode42 chrome/renderer/resources/extensions/web_view/chrome_web_view.js:42: function getContextMenusOnClickedEvent(webViewInstanceId, On 2017/06/13 17:46:00, lazyboy wrote: > nit: ...
3 years, 6 months ago (2017-06-13 22:30:53 UTC) #27
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/2912883004/80001
3 years, 6 months ago (2017-06-13 22:31:52 UTC) #30
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 22:38:43 UTC) #33
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3e46aa6ced2554cd07a7cc9aad1e...

Powered by Google App Engine
This is Rietveld 408576698