FelisCatus / SwitchyOmega

Manage and switch between multiple proxies quickly & easily.
GNU General Public License v3.0
21.14k stars 3.17k forks source link

The 'System Proxy' option does Not work in Firefox. It works on Vivaldi, Opera, and Edge; but they too can get the same bug under some circumstances. Solution suggested and a second bug identified. #2437

Open victorxstc opened 10 months ago

victorxstc commented 10 months ago

Thanks for this awesome add-on; I was looking for such a feature once the very advanced Opera 12 succumbed to Chromium and left its awesome features (like your add-on) behind for good.

Bug:

The System Proxy does Not work on Firefox. I tested it using multiple VPNs that automatically change the system's proxy settings (Psiphon, Freegate, and Ultrasurf). All of these work and all of these change the system proxy settings automatically (I tested and made sure they do and do). When I used the 'System Proxy' option, it didn't work at all. I tested this with all 3 VPNs, to no avail.


Additional checks:

  1. In my Firefox, I added a new proxy setting as "localhost" and a port number to connect to each of my 3 VPNs. It worked just fine with each of the 3 VPNs.

  2. I thought maybe it has something to do with my 'system proxy'; to test if the 'system proxy' is problematic or not, I installed the add-on on other browsers: I tested it on Vivaldi, Opera, and Edge. The "System Proxy" option WORKED just fine in all of them.

  3. I thought maybe it doesn't work on Firefox, because my Firefox's internal proxy setting is set to "No Proxy" (direct connection). By its internal proxy settings, I mean "Settings --> Network Settings --> No proxy". Nevertheless, Chromium-based browsers always follow the Windows' proxy settings by default (unlike Firefox).

  4. To test this, I used the --no-proxy-server command to suppress this behavior of Opera, Vivaldi, and Edge.

  5. This caused the same bug as the one I saw in Firefox, with exactly a similar solution: After using the --no-proxy-server command in those Chromium-based browsers, the "System Proxy" option of the add-on stopped working. Still, when I created new custom proxies within the add-on (HTTP at localhost:port of the VPN), the VPN worked again in Vivaldi, Opera, and Edge.


Potential Solution... Did it work? No- A Second Bug was identified, instead.

So I thought maybe if I set the internal proxy of Firefox to something similar to the default state of Chromium-based browsers (i..e, to set it to "Settings --> Network Settings --> Use the system proxy settings"), Firefox will act just like those Chromium-based browsers. I tried it and expected to see that the add-one's "System Proxy" option works in Firefox. Firefox connected to the VPN. First I thought it is because of the add-on's "System Proxy" option. But after I turned it off and set it to DIRECT, Firefox was still using the VPN despite Direct being enabled.

So it would be very good if you could make this awesome add-on to adapt to Firefox, the way it works with Chromium-based browsers.


Note: The priority of the OmegaSwitchy was the highest in all the above-mentioned 4 browsers (jncluding Firefox). I checked and ensures its priority is not lowered by any other procedure.


SwitchyOmega 2.5.19 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0

In my 3 Chromium-based browsers, its version was 2.5.21

RuioWolf commented 7 months ago

Same here, seems like both Direct and System Proxy final behavior depends on Settings -> Network Settings. Hope this can be fixed.