Add flag to enable Mojo GIN bindings in Chrome |
||
Issue descriptionThe Mojo GIN bindings are currently only available in content_shell when run with the --run-layout-test flag. This issue tracks the work to enable them in production builds of Chrome when run with a similar flag. This is to enable running Web Platform Tests that override Mojo services outside of the Chromium waterfall.
,
May 22 2017
Oops, I forgot this bug existed. Please don't do this. We're transitioning to the new native Blink Mojo bindings very soon, and you can already turn those on with --enable-blink-features=MojoJS
,
May 22 2017
In fact you can already generate bindings which use the new JS API by
setting use_new_js_bindings to true in your mojom GN rule.
From there you can simply script src
${out}/gen/mojo/public/js/mojo_bindings.js and whatever generated mojom js
you need.
,
May 22 2017
Thanks! I'll give it a try.
,
May 22 2017
Note, we'll still need to land an alternative for getting at a connector, but I have a CL in progress for that which will also be available behind a simple blink RuntimeEnabled flag.
,
May 22 2017
Do you have an issue number for that or can you link to the CL here?
,
May 22 2017
I guess we've been lumping things into 699569 and 723923 as precursors for this use case. No bug exists specifically for the new connector API. I can file one.
,
Apr 3 2018
I came here from https://lists.w3.org/Archives/Public/public-test-infra/2017AprJun/0057.html Was this not fixed with --enable-blink-features=MojoJS,MojoJSTest, or is that something else?
,
Apr 3 2018
This is obsolete. We don't use gin bindings anymore, and yes the MojoJs feature flag addresses the spirit of the bug anyway. |
||
►
Sign in to add a comment |
||
Comment 1 by reillyg@chromium.org
, May 22 2017