cschiller / zhongwen

Official source code of the "Zhongwen" Chrome extension
https://chrome.google.com/webstore/detail/zhongwen-chinese-english/kkmlkkjojmombglmlpbpapmhcaljjkde
GNU General Public License v2.0
314 stars 52 forks source link

2020 08 add pleco link4 firefox android #45

Open ascemama opened 4 years ago

ascemama commented 4 years ago

Hi Christian,

as discussed a couple of month ago here a pull request which implements a (clickable) pleco image (see attached picture) in the main dialog, which redirect to pleco for the selected word.

Feedback are welcome ! Hope it will eventually make it to the master branch. Once it is there I will remove my fork from the Addon Firefox store. Thx, Antoine

Screenshot_20200806-182324 (1) Screenshot_20200806-182201

kondeeza commented 3 years ago

Don't know if you're around but I appreciate this a lot. I just merged this to my own fork and it works great. Nice to have Pleco button at finger tip !

cschiller commented 3 years ago

So I tested this with FF 84.1.2 on Android 10 using web-ext and it's not working for me.

What version of FF and Android have you been using for your tests?

cschiller commented 3 years ago

BTW, Firefox specific changes should be merged into the firefox branch, not the masterbranch, which is the one I use for building the Chrome releases.

kondeeza commented 3 years ago

I can at least confirm that the super old Android 68.1 works fine.

ascemama commented 3 years ago

@kondeeza : thx mate :) @cschiller : sorry I did not write down which version I tested. It was the current version at the time. But anyway, since then Firefox has refactored the android version and there is currently no way to install extensions on the main app except for a few selected extensions. According to Mozilla they will re-allow for installing any extension in the future, but not clear when. You can check this https://blog.mozilla.org/addons/2020/02/11/faq-for-extension-support-in-new-firefox-for-android/

When it will be possible to add extension again I can work on it and submit another pull request (in Android branch) if you are willing to include it. Next time it would be great if you could give me a hint as to when you plan to review and integrate it (or not) so that I know I did not spend time for nothing.

Thx

cschiller commented 3 years ago

If it works for you then you didn't exactly spend time for nothing, did you? ;)

I can make no promise as to when, or if, I merge pull requests. But a prerequisite is that they are working and have been properly tested.

I'm willing to look into this again once add-ons can again be installed for Android. The problem seems to be that the event handler that closes the popup is called before the link is being opened. I don't know how to fix this. But, just like you, I don't see much value in spending more time on this if the extension cannot be installed anyway.

So I would suggest to wait and possibly revisit this later.