foxyproxy / browser-extension

Version 8 and above. Browser extension source code for Firefox, Chrome, and other Chromium-based browsers
GNU General Public License v2.0
199 stars 29 forks source link

Firefox Android: Proxies are not applied on v8.2 #60

Closed AgentConDier closed 6 months ago

AgentConDier commented 6 months ago

Regardless of FoxyProxy configuration, no connections attempt to use any proxy server.

Firefox Nightly 122.0a1 (Build #2015990567), a2268afaa0+ Huawei Mate 20 Pro, Emui 12 (Android 10) My FoxyProxy was updated to 8.2 today, before that everything has always worked fine. Unfortunately, I don't know which version I had previously, and sideloading other versions to test is impossible on android as far as I know.

erosman commented 6 months ago

Firefox on Android

Support is experimental and based on user feedback.

Have you enabled Run in private browsing?

AgentConDier commented 6 months ago

Yes, that is enabled. I am primarily using FoxyProxy in normal browsing mode though.

erosman commented 6 months ago

I asked since Firefox requires it and blocks the extensions without it.

erosman commented 6 months ago

Out of curiosity, can you try v8.3? FoxyProxy Basic (same code) is available now. FoxyProxy (standard) is awaiting approval.

BrandtnerKPW commented 6 months ago

I have same issue. Neither FoxyProxy Standard or Basic (both version 8.2) works with patterns. It works only if manually set proxy for each tab (Set Tab Proxy). UPD. Basic updated to 8.4 and still not working with patterns.

AgentConDier commented 6 months ago

Using FoxyProxy Basic v8.4, I still can't get it to connect with a proxy server. Using pattern mode or selecting a specific proxy, the requests appear in the log but the proxy columns are empty.

AgentConDier commented 6 months ago

@BrandtnerKPW Thanks for the hint, I can confirm that setting the per-tab proxy works, and appears correctly with the proxy details in the log.

erosman commented 6 months ago

My guess is that one of the APIs used is not supported in Firefox for Android.

If you can list what works and what doesn't, maybe I can pinpoint it and work out a workaround.

BrandtnerKPW commented 6 months ago

Using FoxyProxy Basic v8.4 and Firefox Nightly 122.0a1 for Android:

UPD. Same for FoxyProxy Basic v8.6

erosman commented 6 months ago

I think, I have found the problem. I am going to fix it upload to repo.

Update I have updated the repo with the latest code but testing it is a bit cumbersome.

dmitry-j-mikhin commented 6 months ago

FoxyProxy Basic v8.6 and Firefox 120.1.1 for Android. Tab Proxy mode only works for me, all other options do not work.

erosman commented 6 months ago

Install Firefox Nightly for Developers

Disable Automatic Updates

Disable Signature Required

FoxyProxy Beta

FoxyProxy Older Versions

Install add-on from file

AgentConDier commented 6 months ago

Thanks, I didn't know about that debug mode. I can confirm that v7.5.1 works as expected. When I try to install the latest beta (64598b1b438ab512825ee1abfc89f28d650efda9), it refuses with ‘This add-on could not be installed, because it hasn't been verified’. Is that a known restriction for Android, or am I packaging it wrong?

erosman commented 6 months ago

Are you trying it in "Firefox on Android" or "Firefox Nightly for Developers"?

AgentConDier commented 6 months ago

Firefox Nightly for Developers

erosman commented 6 months ago

hm... try disabling xpinstall.signatures.required in about:confog and see.

AgentConDier commented 6 months ago

Yes, that did it. I've installed the beta version now, firefox shows it as v8.7 Proxies still only work when set as per-tab proxy though.

erosman commented 6 months ago

After having a chat with Mozilla, I have found the problem. :crossed_fingers: The API test did not work as expected and caused the error. Try v8.7 now.

AgentConDier commented 6 months ago

Hmm it still isn't using the proxy server unless I set it as the tab proxy

erosman commented 6 months ago

Thank you for testing. Did you test it with the latest update of the repo?

I will check it again.

AgentConDier commented 6 months ago

Yes, I reinstalled from a zip file of 00c8670eb9663be757a6a9832b7bff21e53a2e69

pggdt commented 6 months ago

I'm on Android with Fennec and Mull which are both base on Firefox Mobile. Version 8.6 not working on them. Thank you for your hard working, and we are looking forward to updating them with a working Foxyproxy.

erosman commented 6 months ago

I updated the repo with the fix and I tested it on Android and it was working. (debugging is not easy on Android) Please let me know if there are any issue.

AgentConDier commented 6 months ago

Yes, it's working now (2d8cfad87913030490a139626466c93e66e4308f)! Thanks a lot for putting in the effort 👍

erosman commented 6 months ago

Foxy Proxy v8.7 uploaded to AMO. Basic is available now and standard will be after it is reviewed by AMO.