Current Events > Firefox for Android adding support for desktop extensions

Topic List
Page List: 1
FL81
08/11/23 1:54:57 PM
#1:


https://blog.mozilla.org/addons/2023/08/10/prepare-your-firefox-desktop-extension-for-the-upcoming-android-release/

took them long enough tbh

---
https://i.imgur.com/TGkNCva.gif
... Copied to Clipboard!
SavedYouAClick
08/11/23 1:57:08 PM
#2:


In the coming months Mozilla will launch support for an open ecosystem of extensions on Firefox for Android on addons.mozilla.org (AMO). Well announce a definite launch date in early September, but its safe to expect a roll-out before the years end. Heres everything developers need to know to get their Firefox desktop extensions ready for Android usage and discoverability on AMO

Firefox will become the only major Android browser to support an open extension ecosystem
For the past few years Firefox for Android officially supported a small subset of extensions while we focused our efforts on strengthening core Firefox for Android functionality and understanding the unique needs of mobile browser users. Today, Mozilla has built the infrastructure necessary to support an open extension ecosystem on Firefox for Android. We anticipate considerable user demand for more extensions on Firefox for Android, so why not start optimizing your desktop extension for mobile-use right away?

There is so much creative potential to unlock within the mobile browser space. Mozilla wants to provide developers with the best support we can so theyre equipped and empowered to build modern mobile WebExtensions. Giorgio Natili, Firefox Director of Engineering

To support our ecosystem of extension developers, we will create additional guides, resources and host community events to support your transition to a managed multi-process environment like Android.

Transition background scripts to non-persistent event pages

We recently introduced support for multi-process in Firefox for Android Nightly. This means extensions are no longer hosted in the main process as Firefoxs user interface. This is a key consideration since Android is prone to shutting down resource-intensive processes, such as extensions. To mitigate the risk of unexpected extension termination, weve introduced event page architecture to be non-persistent and more resilient to process termination. Thus we strongly encourage developers to transition from persistent backgrounds to non-persistent Event pages to improve their extensions stability. In summary, this means:

Update your manifest.json background key and add persistent: false.
Ensure listeners are registered synchronously at the top-level.
Record global state in the storage API, for example storage.session.
Change timers to alarms.
Switch from using extension.getBackgroundPage for calling a function from the background page, to extension messaging or runtime.getBackgroundPage.
Once youre ready to test the mobile version of your extension, create a collection on AMO and test it on Firefox for Android Nightly. If youd prefer to polish your extension before publishing it on AMO, you can also debug and run the extension with web-ext.

This is an exciting time for developers seeking to expand the reach of their desktop extensions into the mobile Android space. For community support and input, youre welcome to join the conversation on Firefox Add-ons Discourse.

---
You're welcome.
https://imgur.com/fwj6YCA.png https://imgur.com/qMdgxd4.png https://imgur.com/TjVHEAK.png https://imgur.com/t4lxrwL.jpg
... Copied to Clipboard!
Solo_Wing
08/11/23 2:30:04 PM
#3:


You can already do that uhhh.. officially, unofficially? via Firefox Beta, then activating dev mode and creating an addon collection. Some compatibility issues but most neccessary ones are working. Even forks like Iceraven and Mull allow addon collection.

---
Time to dive into the fireworks!
... Copied to Clipboard!
FL81
08/11/23 2:41:30 PM
#4:


Solo_Wing posted...
You can already do that uhhh.. officially, unofficially? via Firefox Beta, then activating dev mode and creating an addon collection. Some compatibility issues but most neccessary ones are working. Even forks like Iceraven and Mull allow addon collection.
Mull is what I've been using so that I can have SponsorBlock support (also worked for Bypass Paywalls Clean, until that one got taken off of AMO).

Hopefully with this new update, we'll have support for even more extensions (even with the current collections workaround, not all are supported on mobile)

---
https://i.imgur.com/TGkNCva.gif
... Copied to Clipboard!
Inohira
08/11/23 2:44:50 PM
#5:


Mobile Firefox already used to do this, they just took the ability away years ago for some dumb reason.

---
1 line break(s), 121 characters allowed
... Copied to Clipboard!
FL81
08/11/23 2:45:36 PM
#6:


Inohira posted...
Mobile Firefox already used to do this, they just took the ability away years ago for some dumb reason.
yes, it's awful

can't they just leave alone what isn't broken (R.I.P. tabs on bottom)

---
https://i.imgur.com/TGkNCva.gif
... Copied to Clipboard!
Topic List
Page List: 1