New issue
Advanced search Search tips

Issue 701559 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 701288



Sign in to add a comment

Support Mojo interface interception from workers

Project Member Reported by reillyg@chromium.org, Mar 14 2017

Issue description

The following use cases would benefit from the ability to override a Mojo service from a worker (probably a service worker work fit best):

* Writing LayoutTests that perform a main frame navigation (brought up in a question on blink-dev, https://groups.google.com/a/chromium.org/d/msg/blink-dev/S8lQZRskXOg/5XUJJYWXBgAJ) doesn't work because the ExecutionContext in which the Mojo mock service is running is destroyed.

* Mocking RPCs that are called synchronously from Blink deadlocks because we don't call into JavaScript reentrantly.

Sending a Mojo pipe to a worker would probably handle most of these cases but it seems cleaner to write tests where the mocks live in a service worker and thus run completely independently from the page where the test is running.
 
Description: Show this description

Comment 2 by yzshen@chromium.org, Mar 14 2017

Cc: roc...@chromium.org
Components: Internals>Mojo>Bindings
I think this is a nice idea.

Comment 3 by leon....@intel.com, Mar 15 2017

Blocking: 701288
Cc: -roc...@chromium.org rockot@google.com
Cc: -yzshen@chromium.org
Status: Available (was: Untriaged)
Summary: Support Mojo interface interception from workers (was: Support Mojo service overrides from workers)

Sign in to add a comment