|
Java code in Firefox for Android addons
|
|
Posted by: stak
Tags: mozilla
Posted on: 2012-10-11 13:00:53
With the new "native Fennec" (aka Firefox for Android, v14 or higher), the UI is built using standard Android widgets and components. While this makes the browser much faster to start up and better integrated with Android, it also has a disadvantage: add-on authors are much more limited in what they can do with the Firefox UI. We currently have a few APIs, exposed to JS via the NativeWindow object, that allow add-on authors to interact with the UI. However, this is a far cry from what can be done with desktop Firefox or the older "XUL Fennec".
Recently, I put together a proof-of-concept that allows add-ons to bundle Java code into their Firefox for Android add-on and run it on demand (see bug 794479). In theory, this will allow add-on authors to provide much deeper integration with the UI. However, as with all add-on APIs, we need to be very careful with what we expose and how we allow authors to use it, so that we balance the functionality provided with how much we are constrained from changing things in the future.
I am interested in hearing from anybody, but add-on authors in particular, to see what kind of use cases they would like to see supported, so that we can see if (1) exposing such an API is worthwhile at all, and (2) what kind of functionality we should provide if we do expose the API. Please comment on this post or in bug 799631 with any thoughts you have on the topic. Thanks!
|
|
(c) Kartikaya Gupta, 2004-2024. User comments owned by their respective posters. All rights reserved.
You are accessing this website via IPv4. Consider upgrading to IPv6!
|
Though, I don't know how useful it would be to other add-on authors :)