I have an unlisted WebExtension that does not work on Android. How to debug?

Hi all,

I created a Google Translate WebExtension. It works fine on the desktop but on Android it fails with this error: “Addon downloade from … could not be installed because it appears to be corrupt.”

The addon is signed, I never disable signing verification on any of my devices and it works on all versions of Firefox I tested except for the Android ones. You can install it from here.

Is this a bug or am I doing something wrong? How to debug this?

Thank you!

I get that error in Fennec 55, but not in Fennec 53.

Fennec 54 or 55 introduced support for browser_action. It will be added as a text-only entry to the main menu – without an icon.
For reasons of stupidness, Fennec 55 doesn’t just ignore the browser_action.default_icon value, but refuses to install the installation. (You should see more helpful messages in the browser console.)

That will probably be fixed in the stable version of Fennec 55, but for now, you can remove the manifest key and set the icon programmatically of non-Fennec Browsers.

I will try that! Thank you!

It still fails with the same error in the latest version.

How can I see some log in Fennec? Do I need to be root?

Sorry for the late reply.

How can I see some log in Fennec? Do I need to be root?

Nope. Just USB-debugging. I’d suggest this workflow:

https://discourse.mozilla-community.org/t/debug-webextensions-in-android/13304/2?u=nilkasg

1 Like

Thank you! I will try it out.