In automation, the pac is set as a data uri. For Firefox desktop the pac script contains var proxyForScheme = { 'http': 'PROXY 127.0.0.1:8888', 'https': 'PROXY 127.0.0.1:4443', 'ws': 'PROXY 127.0.0.1:4443', 'wss': 'PROXY 127.0.0.1:4443'}; The web server and the ssltunnel run on the same host as Firefox. Thhs works fine for both requesting http and https pages. For Android the pac script contains var proxyForScheme = { 'http': 'PROXY 192.168.1.7:8888', 'https': 'PROXY 192.168.1.7:4443', 'ws': 'PROXY 192.168.1.7:4443', 'wss': 'PROXY 192.168.1.7:4443'}; where in this case the host where the web server and ssltunnel are running is 192.168.1.8. This works for the device requesting http sites but not https. When a request for an https page is made, the browser responds that the proxy is refusing connections. If I change the android pac script to use 127.0.0.1 instead of the host's ip address and then tell the device to forward requests to the proxied ports to the host, it will succeed in making requests to both http and https pages. I'll attach the default prefs.js file used for Android which uses the ip address of my machine.
Bug 1335740 Comment 46 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
In automation, the pac is set as a data uri. For Firefox desktop the pac script contains var proxyForScheme = { 'http': 'PROXY 127.0.0.1:8888', 'https': 'PROXY 127.0.0.1:4443', 'ws': 'PROXY 127.0.0.1:4443', 'wss': 'PROXY 127.0.0.1:4443'}; The web server and the ssltunnel run on the same host as Firefox. Thhs works fine for both requesting http and https pages. For Android the pac script contains var proxyForScheme = { 'http': 'PROXY 192.168.1.7:8888', 'https': 'PROXY 192.168.1.7:4443', 'ws': 'PROXY 192.168.1.7:4443', 'wss': 'PROXY 192.168.1.7:4443'}; where in this case the host where the web server and ssltunnel are running is 192.168.1.7. This works for the device requesting http sites but not https. When a request for an https page is made, the browser responds that the proxy is refusing connections. If I change the android pac script to use 127.0.0.1 instead of the host's ip address and then tell the device to forward requests to the proxied ports to the host, it will succeed in making requests to both http and https pages. I'll attach the default prefs.js file used for Android which uses the ip address of my machine.