On Fri, May 15, 2015 at 8:55 PM, Jim Chen <[email protected]> wrote:
> Hi Roman,
>
> I think this is an actual bug in GeckoView caused by recent changes. I'll
> file a bug, but you can try this fix:
>
> Move the line "GeckoLoader.loadMozGlue(context);" from line 155 of
> mobile/android/base/GeckoView.java, to line 122 (i.e. move the line to the
> top of the init method), and then rebuild. That will load libmozglue.so
> before it is used.
This works for me. I also fixed sContentGetter to get working apk:
----
@@ -116,16 +116,18 @@ public class GeckoView extends LayerView
boolean doInit = a.getBoolean(R.styleable.GeckoView_doinit, true);
a.recycle();
init(context, url, doInit);
}
private void init(Context context, String url, boolean doInit) {
// Perform common initialization for Fennec/GeckoView.
GeckoAppShell.setLayerView(this);
+ GeckoAppShell.setContextGetter(this);
+ GeckoLoader.loadMozGlue(context);
initializeView(EventDispatcher.getInstance());
GeckoAppShell.sendEventToGecko(GeckoEvent.createObjectEvent(
GeckoEvent.ACTION_OBJECT_LAYER_CLIENT,
getLayerClientObject()));
// TODO: Fennec currently takes care of its own initialization, so this
// flag is a hack used in Fennec to prevent GeckoView initialization.
// This should go away once Fennec also uses GeckoView for
----
Thanks a lot!
--
WBR,
Roman Tsisyk <[email protected]>
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev