ipfs / ipfs-companion

Browser extension that simplifies access to IPFS resources on the web
https://docs.ipfs.tech/install/ipfs-companion/
Creative Commons Zero v1.0 Universal
2.05k stars 324 forks source link

Support Firefox for Android #866

Open lidel opened 4 years ago

lidel commented 4 years ago

Mozilla ships multiple products on mobile and it is very confusing to understand what is what, and where IPFS Companion can run.

Below are mu notes to save everyone some time + next steps.

The saga of Android browsers from Mozilla

:snowflake: Fennec

In the past, there was "Firefox for Android" and "Firefox for Android Beta", both based on "Fennec" codebase, for which active development stopped around Firefox 68.

Cool thing about "Fennec" browser was that is support nearly all WebExtension APIs and could run the same extensions as Desktop Firefox, including IPFS Companion.

IPFS Companion runs fine in "Fennec" runtime. User could run local IPFS node (eg. unofficial SweetIPFS) or switch Companion to use embedded js-ipfs, which did not provide gateway, but worked fine for quick uploads on mobile(!).

:fire: Fenix

"Fenix" is an early version of an experimental Firefox browser for Android. Available on the Android Play store under "Firefox Preview" name, built on GeckoView, aims to replace "Fennec" on Android.

Key issue with "Fenix" was that is did not support WebExtensions at all. Part of users was really vocal about that shortcoming and a plan to bring them back on mobile can be tracked in mozilla-mobile/fenix#5315.

As I am writing this memo, Fenix still does not support installing arbitrary WebExtensions. Only a minimal set of APIs was whitelisted to enable extensions such as uBlock Origin to function.

:anger: Fennec → Fenix = No IPFS Companion on Android.. for now

TL;DR from FAQ for extension support in new Firefox for Android:

:memo: Next steps

This is not a priority, but we should eventually:

lidel commented 3 years ago

Update: https://blog.mozilla.org/addons/2020/09/29/expanded-extension-support-in-firefox-for-android-nightly/

lidel commented 7 months ago

Update: