|
|
DescriptionMojo JS bindings: flip the default value of use_new_js_bindings to true.
Test cases will time out when CL [1] using skia mojo bitmap.
[1] https://codereview.chromium.org/2875243002#
BUG=699569
Review-Url: https://codereview.chromium.org/2912323002
Cr-Commit-Position: refs/heads/master@{#476555}
Committed: https://chromium.googlesource.com/chromium/src/+/9821a80606c582307bc791c798c6ccaeadaa70ec
Patch Set 1 #
Messages
Total messages: 37 (18 generated)
junwei.fu@intel.com changed reviewers: + jam@chromium.org, yzshen@chromium.org
PTAL, thanks.
Please consider switching the tests to use the new mode. :) LGTM
The CQ bit was checked by junwei.fu@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/05/31 17:46:40, yzshen1 wrote: > Please consider switching the tests to use the new mode. :) > > LGTM It's my pleasure to do it, thanks.
The CQ bit was checked by junwei.fu@intel.com
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by junwei.fu@intel.com
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
junwei.fu@intel.com changed reviewers: + robertphillips@google.com - jam@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
Description was changed from ========== Mojo JS bindings: flip the default value of use_new_js_bindings to true. Test cases will time out when CL [1] using skia mojo bitmap. [1] https://codereview.chromium.org/2875243002# BUG=699569 ========== to ========== Mojo JS bindings: flip the default value of use_new_js_bindings to true. Test cases will time out when CL [1] using skia mojo bitmap. [1] https://codereview.chromium.org/2875243002# BUG=699569 ==========
robertphillips@google.com changed reviewers: + mtklein@google.com
On 2017/06/01 02:58:21, commit-bot: I haz the power wrote: > Try jobs failed on following builders: > chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, > http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) mtklein@ robertphillips@ PTAL, thanks.
mtklein@chromium.org changed reviewers: + mtklein@chromium.org
¯\_(ツ)_/¯ lgtm
The CQ bit was checked by junwei.fu@intel.com
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 1, "attempt_start_ts": 1496364445058920, "parent_rev": "54d7eb0b3a09f39e9db65452d72209bee09fd006", "commit_rev": "9821a80606c582307bc791c798c6ccaeadaa70ec"}
Message was sent while issue was closed.
Description was changed from ========== Mojo JS bindings: flip the default value of use_new_js_bindings to true. Test cases will time out when CL [1] using skia mojo bitmap. [1] https://codereview.chromium.org/2875243002# BUG=699569 ========== to ========== Mojo JS bindings: flip the default value of use_new_js_bindings to true. Test cases will time out when CL [1] using skia mojo bitmap. [1] https://codereview.chromium.org/2875243002# BUG=699569 Review-Url: https://codereview.chromium.org/2912323002 Cr-Commit-Position: refs/heads/master@{#476555} Committed: https://chromium.googlesource.com/chromium/src/+/9821a80606c582307bc791c798c6... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/9821a80606c582307bc791c798c6...
Message was sent while issue was closed.
On 2017/06/02 03:52:02, commit-bot: I haz the power wrote: > Committed patchset #1 (id:1) as > https://chromium.googlesource.com/chromium/src/+/9821a80606c582307bc791c798c6... Probably no need to revert, but I just noticed that the description of this CL is incorrect. Please make sure the first line accurately describes what the CL does next time.
Message was sent while issue was closed.
On 2017/06/02 15:09:08, yzshen1 wrote: > On 2017/06/02 03:52:02, commit-bot: I haz the power wrote: > > Committed patchset #1 (id:1) as > > > https://chromium.googlesource.com/chromium/src/+/9821a80606c582307bc791c798c6... > > Probably no need to revert, but I just noticed that the description of this CL > is incorrect. Please make sure the first line accurately describes what the CL > does next time. Thanks for reminding, i will pay attention to it.
Message was sent while issue was closed.
Description was changed from ========== Mojo JS bindings: flip the default value of use_new_js_bindings to true. Test cases will time out when CL [1] using skia mojo bitmap. [1] https://codereview.chromium.org/2875243002# BUG=699569 Review-Url: https://codereview.chromium.org/2912323002 Cr-Commit-Position: refs/heads/master@{#476555} Committed: https://chromium.googlesource.com/chromium/src/+/9821a80606c582307bc791c798c6... ========== to ========== Mojo JS bindings: flip the default value of use_new_js_bindings to true. Test cases will time out when CL [1] using skia mojo bitmap. [1] https://codereview.chromium.org/2875243002# BUG=699569 Review-Url: https://codereview.chromium.org/2912323002 Cr-Commit-Position: refs/heads/master@{#476555} Committed: https://chromium.googlesource.com/chromium/src/+/9821a80606c582307bc791c798c6... ==========
Message was sent while issue was closed.
junwei.fu@intel.com changed reviewers: - mtklein@google.com, robertphillips@google.com
Message was sent while issue was closed.
On 2017/05/31 17:46:40, yzshen1 wrote: > Please consider switching the tests to use the new mode. :) > > LGTM I am trying to switch shape detection layout tests to use new js binding, but textdetection.mojom [1] is depend on geometry.mojom which still use old js binding, does it mean all of using geometry.mojom need to switch new js binding? such as media/capture/mojo/BUILD.gn [2] [1] https://cs.chromium.org/chromium/src/services/shape_detection/public/interfac... [2] https://cs.chromium.org/chromium/src/media/capture/mojo/BUILD.gn
Message was sent while issue was closed.
On 2017/06/07 08:13:07, junwei wrote: > On 2017/05/31 17:46:40, yzshen1 wrote: > > Please consider switching the tests to use the new mode. :) > > > > LGTM > > I am trying to switch shape detection layout tests to use new js binding, but > textdetection.mojom [1] is depend on geometry.mojom which still use old js > binding, does it mean all of using geometry.mojom need to switch new js binding? > such as media/capture/mojo/BUILD.gn [2] Thanks for looking into this! If a mojom target depends on geometry.mojom, *and* this mojom target is used in JavaScript, then yes we need to switch this mojom target. If it is never used in JavaScript anywhere, then no. Looking at media/capture/mojo/BUILD.gn: The "capture_types" target is already using the new mode (Because it doesn't have use_new_js_bindings = false.) That probably means it is never used in JavaScript so we don't care the inconsistent between "capture_types" and "geometry". The "image_capture" target doesn't depend on "geometry", so it should be irrelevant to the problem we are discussing. > > [1] > https://cs.chromium.org/chromium/src/services/shape_detection/public/interfac... > [2] https://cs.chromium.org/chromium/src/media/capture/mojo/BUILD.gn
Message was sent while issue was closed.
On 2017/06/07 16:47:42, yzshen1 wrote: > On 2017/06/07 08:13:07, junwei wrote: > > On 2017/05/31 17:46:40, yzshen1 wrote: > > > Please consider switching the tests to use the new mode. :) > > > > > > LGTM > > > > I am trying to switch shape detection layout tests to use new js binding, but > > textdetection.mojom [1] is depend on geometry.mojom which still use old js > > binding, does it mean all of using geometry.mojom need to switch new js > binding? > > such as media/capture/mojo/BUILD.gn [2] > > Thanks for looking into this! > > If a mojom target depends on geometry.mojom, *and* this mojom target is used in > JavaScript, then yes we need to switch this mojom target. > If it is never used in JavaScript anywhere, then no. > > Looking at media/capture/mojo/BUILD.gn: > The "capture_types" target is already using the new mode (Because it doesn't > have use_new_js_bindings = false.) That probably means it is never used in > JavaScript so we don't care the inconsistent between "capture_types" and > "geometry". I confirmed that "capture_types" is never used in JavaScript: https://cs.chromium.org/search/?q=file:(js%7Chtml)$+video_capture_types.mojom... > > The "image_capture" target doesn't depend on "geometry", so it should be > irrelevant to the problem we are discussing. > > > > > > [1] > > > https://cs.chromium.org/chromium/src/services/shape_detection/public/interfac... > > [2] https://cs.chromium.org/chromium/src/media/capture/mojo/BUILD.gn
Message was sent while issue was closed.
On 2017/06/07 16:51:55, yzshen1 wrote: > On 2017/06/07 16:47:42, yzshen1 wrote: > > On 2017/06/07 08:13:07, junwei wrote: > > > On 2017/05/31 17:46:40, yzshen1 wrote: > > > > Please consider switching the tests to use the new mode. :) > > > > > > > > LGTM > > > > > > I am trying to switch shape detection layout tests to use new js binding, > but > > > textdetection.mojom [1] is depend on geometry.mojom which still use old js > > > binding, does it mean all of using geometry.mojom need to switch new js > > binding? > > > such as media/capture/mojo/BUILD.gn [2] > > > > Thanks for looking into this! > > > > If a mojom target depends on geometry.mojom, *and* this mojom target is used > in > > JavaScript, then yes we need to switch this mojom target. > > If it is never used in JavaScript anywhere, then no. > > > > Looking at media/capture/mojo/BUILD.gn: > > The "capture_types" target is already using the new mode (Because it doesn't > > have use_new_js_bindings = false.) That probably means it is never used in > > JavaScript so we don't care the inconsistent between "capture_types" and > > "geometry". > > I confirmed that "capture_types" is never used in JavaScript: > https://cs.chromium.org/search/?q=file:(js%7Chtml)$+video_capture_types.mojom... > > > > > > The "image_capture" target doesn't depend on "geometry", so it should be > > irrelevant to the problem we are discussing. > > > > > > > > > > [1] > > > > > > https://cs.chromium.org/chromium/src/services/shape_detection/public/interfac... > > > [2] https://cs.chromium.org/chromium/src/media/capture/mojo/BUILD.gn I got it, thanks. Loading mojo/public/js/bindings module switched to <script src="file:///gen/layout_test_data/mojo/public/js/mojo_bindings.js"></script>. How to use content/public/renderer/interfaces in new binding?
Message was sent while issue was closed.
On 2017/06/08 01:46:24, junwei wrote: > On 2017/06/07 16:51:55, yzshen1 wrote: > > On 2017/06/07 16:47:42, yzshen1 wrote: > > > On 2017/06/07 08:13:07, junwei wrote: > > > > On 2017/05/31 17:46:40, yzshen1 wrote: > > > > > Please consider switching the tests to use the new mode. :) > > > > > > > > > > LGTM > > > > > > > > I am trying to switch shape detection layout tests to use new js binding, > > but > > > > textdetection.mojom [1] is depend on geometry.mojom which still use old js > > > > binding, does it mean all of using geometry.mojom need to switch new js > > > binding? > > > > such as media/capture/mojo/BUILD.gn [2] > > > > > > Thanks for looking into this! > > > > > > If a mojom target depends on geometry.mojom, *and* this mojom target is used > > in > > > JavaScript, then yes we need to switch this mojom target. > > > If it is never used in JavaScript anywhere, then no. > > > > > > Looking at media/capture/mojo/BUILD.gn: > > > The "capture_types" target is already using the new mode (Because it doesn't > > > have use_new_js_bindings = false.) That probably means it is never used in > > > JavaScript so we don't care the inconsistent between "capture_types" and > > > "geometry". > > > > I confirmed that "capture_types" is never used in JavaScript: > > > https://cs.chromium.org/search/?q=file:(js%7Chtml)$+video_capture_types.mojom... > > > > > > > > > > The "image_capture" target doesn't depend on "geometry", so it should be > > > irrelevant to the problem we are discussing. > > > > > > > > > > > > > > [1] > > > > > > > > > > https://cs.chromium.org/chromium/src/services/shape_detection/public/interfac... > > > > [2] https://cs.chromium.org/chromium/src/media/capture/mojo/BUILD.gn > > I got it, thanks. > > Loading mojo/public/js/bindings module switched to <script > src="file:///gen/layout_test_data/mojo/public/js/mojo_bindings.js"></script>. > How to use content/public/renderer/interfaces in new binding? (I would suggest we discuss such issue on a separate mailing thread in the future, since it is not directly related to this patch.) Do you mean you need to use "addInterfaceOverrideForTesting"? There is a new way doing this. Please see MojoInterfaceInterceptor in //src/third_party/WebKit/LayoutTests/mojo/bind-interface.html |