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

Issue 1470823002: Enable builtin Mojo JS modules in layout tests (Closed)

Created:
5 years, 1 month ago by Ken Rockot(use gerrit already)
Modified:
4 years, 11 months ago
Reviewers:
tkent, Charlie Reis, creis
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nasko, ncarter (slow), Peter Beverloo, Tom Sepez
Base URL:
https://chromium.googlesource.com/chromium/src.git@usb-testing
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable builtin Mojo JS modules in layout tests This adds a new BindingsPolicy exclusively for enabling Mojo system API and ServiceRegistry modules to a render view. Previously these were only made available in conjunction with WebUI bindings. While still implied by WebUI bindings availability, Mojo modules are now also available to any view created during a layout test run. Part of a CL series to enable Mojo service mocks in layout tests: 1. https://codereview.chromium.org/1468903002 2. this CL 3. https://codereview.chromium.org/1470153002 TBR=dbeam@chromium.org for WebUI Committed: https://crrev.com/8df5c724f1df87044980ff8b6618d367608bc4cf Cr-Commit-Position: refs/heads/master@{#371470}

Patch Set 1 #

Patch Set 2 : no mojo bindings without main frame #

Patch Set 3 : #

Patch Set 4 : fix test expectations #

Patch Set 5 : self review #

Total comments: 8

Patch Set 6 : simplify #

Patch Set 7 : merge in migration from WebUIDataSourceImpl and a basic layout test #

Patch Set 8 : remove references to "EDK" #

Patch Set 9 : add 'define' to global interface expectations for AMD in layout tests #

Total comments: 5

Patch Set 10 : fix name #

Total comments: 2

Patch Set 11 : use a global 'mojo' instead of 'define' #

Patch Set 12 : #

Patch Set 13 : oops, clumsy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -52 lines) Patch
M chrome/browser/ui/webui/engagement/site_engagement_ui.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/webui/web_ui_data_source_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/webui/web_ui_data_source_impl.cc View 1 2 3 4 5 6 2 chunks +0 lines, -19 lines 0 comments Download
M content/browser/webui/web_ui_mojo_browsertest.cc View 1 2 3 4 5 6 3 chunks +0 lines, -13 lines 0 comments Download
M content/public/browser/web_ui_data_source.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/common/bindings_policy.h View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M content/renderer/mojo_bindings_controller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/mojo_bindings_controller.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/mojo_context_state.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/mojo_context_state.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +72 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -1 line 0 comments Download
M content/shell/browser/shell.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/resources/mojo-helpers.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (19 generated)
Charlie Reis
I know this isn't ready for review yet, but I just wanted to post one ...
5 years ago (2015-11-24 17:36:00 UTC) #4
Ken Rockot(use gerrit already)
On 2015/11/24 at 17:36:00, creis wrote: > I know this isn't ready for review yet, ...
5 years ago (2015-11-24 18:09:15 UTC) #5
Charlie Reis
Thanks, but I think I have more questions than answers now. :) CC'ing Nick and ...
5 years ago (2015-11-24 22:35:13 UTC) #7
Ken Rockot(use gerrit already)
On 2015/11/24 at 22:35:13, creis wrote: > Thanks, but I think I have more questions ...
5 years ago (2015-11-25 01:28:30 UTC) #8
Charlie Reis
On 2015/11/25 01:28:30, Ken Rockot (OOO slow til 12-4) wrote: > On 2015/11/24 at 22:35:13, ...
5 years ago (2015-11-26 00:33:34 UTC) #9
Ken Rockot(use gerrit already)
I'd like to try to resurrect this CL. If you'd like to meet to discuss ...
4 years, 11 months ago (2016-01-14 23:02:50 UTC) #10
Charlie Reis
Yes, we can postpone the larger security discussion. Let's try to find time for that, ...
4 years, 11 months ago (2016-01-15 01:26:52 UTC) #12
jam
https://codereview.chromium.org/1470823002/diff/80001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/1470823002/diff/80001/content/public/browser/content_browser_client.h#newcode725 content/public/browser/content_browser_client.h:725: virtual int GetDefaultEnabledBindingsForView(RenderViewHost* view); On 2016/01/15 01:26:51, Charlie Reis ...
4 years, 11 months ago (2016-01-15 02:25:15 UTC) #13
Ken Rockot(use gerrit already)
Thanks for looking. Please take another look when you get a chance. I simplified quite ...
4 years, 11 months ago (2016-01-24 23:03:51 UTC) #17
jam
On 2016/01/24 23:03:51, Ken Rockot wrote: > Thanks for looking. Please take another look when ...
4 years, 11 months ago (2016-01-25 22:00:54 UTC) #19
Ken Rockot(use gerrit already)
OK. Charlie, WDYT? The new bindings policy is now only added when content_shell is run ...
4 years, 11 months ago (2016-01-25 23:47:34 UTC) #20
Charlie Reis
content/ LGTM, with a few small questions below. https://codereview.chromium.org/1470823002/diff/160001/content/renderer/mojo_context_state.cc File content/renderer/mojo_context_state.cc (right): https://codereview.chromium.org/1470823002/diff/160001/content/renderer/mojo_context_state.cc#newcode57 content/renderer/mojo_context_state.cc:57: scoped_refptr<base::RefCountedMemory> ...
4 years, 11 months ago (2016-01-26 01:01:02 UTC) #21
Ken Rockot(use gerrit already)
Thanks! tkent@ Could you please take a look at blink changes? I do see other ...
4 years, 11 months ago (2016-01-26 01:32:56 UTC) #23
tkent
> Enable builtin Mojo JS modules in layout tests Why Mojo should be available in ...
4 years, 11 months ago (2016-01-26 02:15:07 UTC) #25
Ken Rockot(use gerrit already)
On 2016/01/26 at 02:15:07, tkent wrote: > > Enable builtin Mojo JS modules in layout ...
4 years, 11 months ago (2016-01-26 02:19:04 UTC) #26
Ken Rockot(use gerrit already)
On 2016/01/26 at 02:19:04, Ken Rockot wrote: > On 2016/01/26 at 02:15:07, tkent wrote: > ...
4 years, 11 months ago (2016-01-26 02:21:15 UTC) #27
tkent
ok, I understand the motivation. > > https://codereview.chromium.org/1470823002/diff/180001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt > > File third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt (right): > > ...
4 years, 11 months ago (2016-01-26 03:59:11 UTC) #28
tkent
https://codereview.chromium.org/1470823002/diff/180001/third_party/WebKit/LayoutTests/mojo/mojo-api.html File third_party/WebKit/LayoutTests/mojo/mojo-api.html (right): https://codereview.chromium.org/1470823002/diff/180001/third_party/WebKit/LayoutTests/mojo/mojo-api.html#newcode1 third_party/WebKit/LayoutTests/mojo/mojo-api.html:1: <!DOCTYPE html> mojo is not a web-platform feature. So, ...
4 years, 11 months ago (2016-01-26 04:01:04 UTC) #30
Ken Rockot(use gerrit already)
OK - I'll move it to a global 'mojo' or 'mojoDefine' or somesuch. On 2016/01/26 ...
4 years, 11 months ago (2016-01-26 04:28:38 UTC) #31
Ken Rockot(use gerrit already)
I've moved the global to 'mojo' instead; test helpers moved to LayoutTests/resources and the small ...
4 years, 11 months ago (2016-01-26 04:57:20 UTC) #32
tkent
lgtm
4 years, 11 months ago (2016-01-26 05:13:04 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1470823002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1470823002/220001
4 years, 11 months ago (2016-01-26 05:35:20 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/138960)
4 years, 11 months ago (2016-01-26 05:45:06 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1470823002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1470823002/240001
4 years, 11 months ago (2016-01-26 05:53:52 UTC) #42
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 11 months ago (2016-01-26 07:15:24 UTC) #43
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 07:16:45 UTC) #45
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/8df5c724f1df87044980ff8b6618d367608bc4cf
Cr-Commit-Position: refs/heads/master@{#371470}

Powered by Google App Engine
This is Rietveld 408576698