ContextSearch-web-ext icon indicating copy to clipboard operation
ContextSearch-web-ext copied to clipboard

Configure Toolbar Popup for Mobile (Android) Compatiblity? (Firefox and Kiwi)

Open MintMain21 opened this issue 4 years ago • 6 comments

On Android, there are only two options for Internet Browsers if you want Add-On compatibility like on Desktop. There's Mozilla's Firefox Browser and it's forks/derivatives, and there's the Chromium Kiwi Browser. Since Contect Search web ext is a Chromium and Firefox extension, it can be installed on both browsers. Since it uses both the context menu and a ToolBar popup, it should be compatible with Android Browsers in a way contemporaries like Swift Search Selection are not (since they only use the Context Menu). However, upon trying the extension in both Firefox and Kiwi I found that the Toolbar popup will not display, even though the icon is available.

I'm not sure if this is a compatibility issue or if there's some option I'm neglecting to check/uncheck, but I think there's potential in fixing things up so that the Toolbar Popup will display on Android Browser, and in turn the Add-On can be used on Android. I can't use the context menu to search for things in the background like I would on Desktop, but the Toolbar Popup Context Search web ext offers provides (in theory) an effective workaround that would feel natural and efficient.

MintMain21 avatar Oct 02 '21 00:10 MintMain21

I haven't tested on any mobile platforms but I'll try to see what you mean.

ssborbis avatar Oct 02 '21 05:10 ssborbis

Looks like the addon environment for android is still very limited. I'm not sure how to install a temporary addon for testing.

ssborbis avatar Oct 03 '21 01:10 ssborbis

Looks like the addon environment for android is still very limited. I'm not sure how to install a temporary addon for testing.

Not sure if using an Add-on for development is any different from using an Add-On for general use, but on Firefox the trick is this: https://blog.mozilla.org/addons/2020/09/29/expanded-extension-support-in-firefox-for-android-nightly/ You can also do this on Fennec F-Droid if you want a taste of what running Add-Ons on the current "Stable" build is like.

As for Chromium, Kiwi should be able to install/run any extension from the Google Chrome Add-On page, including ContextSearch-web-ext.

MintMain21 avatar Oct 03 '21 03:10 MintMain21

I tried the collections trick, but I can't seem to add non-production betas to my collection ( specifically, self-signed xpi(s) for testing purposes ). There must be a way to load unpacked extensions for development.

ssborbis avatar Oct 03 '21 03:10 ssborbis

I tried the collections trick, but I can't seem to add non-production betas to my collection ( specifically, self-signed xpi(s) for testing purposes ). There must be a way to load unpacked extensions for development.

I did some digging (IE: My DuckDuckFu) and found some resources that might be helpful, namely https://extensionworkshop.com/documentation/develop/developing-extensions-for-firefox-for-android/ https://developer.mozilla.org/en-US/docs/Tools/about:debugging https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Debugging_Firefox_for_Android_with_WebIDE and https://discourse.mozilla.org/t/testing-addons-on-android/75436/5 . I hope this is enough to be of use.

I think there's a lot of potential for Add-On support in Firefox Android (particularly since the only Android Chromium browser that offers Add-On support is Kiwi), but it's frustrating how content Mozilla seems to be with the default list and how little collaboration there seems to be between Add-On developers and Mozilla. I hope something changes soon, because while I do appreciate the Default Add-Ons chosen, it can't last forever.

MintMain21 avatar Oct 03 '21 06:10 MintMain21

Thanks, that worked.

I've only done the bare minimum to get the toolbar functionality, but you can check out the latest development branch push and see it working in android. I did a few simple searches and it seemed to work ok. Obviously, there's going to be a ton of bugs and incompatible features.

(edit) Looks like the qm is working also

ssborbis avatar Oct 04 '21 18:10 ssborbis