Merge pull request #2954 from abarth/child_view_exception

ChildView throws exceptions outside MojoShell
This commit is contained in:
Adam Barth
2016-03-28 14:44:42 -07:00

View File

@@ -36,6 +36,8 @@ final mojom.ViewProxy _viewProxy = _initViewProxy();
final mojom.View _view = _viewProxy?.ptr;
mojom.ViewContainer _initViewContainer() {
if (_view == null)
return null;
mojom.ViewContainerProxy viewContainerProxy = new mojom.ViewContainerProxy.unbound();
_view.getContainer(viewContainerProxy);
viewContainerProxy.ptr.setListener(new mojom.ViewContainerListenerStub.unbound()..impl = _ViewContainerListenerImpl.instance);