Skip to content

Commit

Permalink
Enables support of SOCKS proxy at Firefox profile. This method is dep…
Browse files Browse the repository at this point in the history
…recated due the same is implemented inside fxdriver but i think still used.
  • Loading branch information
alex-savchuk committed Sep 7, 2013
1 parent 9d31a2b commit 0aa9068
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dotnet/src/webdriver/Firefox/FirefoxProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public void SetProxyPreferences(Proxy proxy)
this.SetManualProxyPreference("ftp", proxy.FtpProxy);
this.SetManualProxyPreference("http", proxy.HttpProxy);
this.SetManualProxyPreference("ssl", proxy.SslProxy);
this.SetManualProxyPreference("socks", proxy.SocksProxy);
if (proxy.NoProxy != null)
{
this.SetPreference("network.proxy.no_proxies_on", proxy.NoProxy);
Expand Down
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/firefox/FirefoxProfile.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public FirefoxProfile setProxyPreferences(Proxy proxy) {
setManualProxyPreference("ftp", proxy.getFtpProxy());
setManualProxyPreference("http", proxy.getHttpProxy());
setManualProxyPreference("ssl", proxy.getSslProxy());
setManualProxyPreference("socks", proxy.getSocksProxy());
if (proxy.getNoProxy() != null) {
setPreference("network.proxy.no_proxies_on", proxy.getNoProxy());
}
Expand Down
1 change: 1 addition & 0 deletions py/selenium/webdriver/firefox/firefox_profile.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def set_proxy(self, proxy):
self._set_manual_proxy_preference("ftp", proxy.ftp_proxy)
self._set_manual_proxy_preference("http", proxy.http_proxy)
self._set_manual_proxy_preference("ssl", proxy.ssl_proxy)
self._set_manual_proxy_preference("socks", proxy.socks_proxy)
elif proxy.proxy_type is ProxyType.PAC:
self.set_preference("network.proxy.autoconfig_url", proxy.proxy_autoconfig_url)

Expand Down
1 change: 1 addition & 0 deletions rb/lib/selenium/webdriver/firefox/profile.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def proxy=(proxy)
set_manual_proxy_preference "ftp", proxy.ftp
set_manual_proxy_preference "http", proxy.http
set_manual_proxy_preference "ssl", proxy.ssl
set_manual_proxy_preference "socks", proxy.socks

if proxy.no_proxy
self["network.proxy.no_proxies_on"] = proxy.no_proxy
Expand Down

0 comments on commit 0aa9068

Please sign in to comment.