Firefox needs to use the dynamically allocated proxy from socks-to-rtc
currently we have hardwired the browser's proxy settings to use port 9999: https://github.com/uProxy/uproxy/blob/7d8a4efba7b7274acc7f1a5c89e1a20a5d27896b/src/chrome/extension/scripts/proxy-config.ts#L21
We should instead be getting the port given back by the socks-to-rtc promise for starting the socks proxy.
Is this still active? @lucyhe you lowered the scope, but didn't reference what change fixed this in chrome. Do we know where the corresponding change would be in firefox, and if this is still relevant?
Done for Chrome here: https://github.com/uProxy/uproxy/pull/457 Active for Firefox; waiting for latest uproxy-lib/networking FF changes to make their way into uproxy. The changes should likely be here: https://github.com/uProxy/uproxy/blob/dev/src/firefox/lib/firefox_proxy_config.js
Although I was reading FF documentation and they mentioned not to use network.proxy preferences in "extensions". (Mentioned here: https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Mozilla_networking_preferences) Is our add-on technically an extension? (This seems to suggest yes http://stackoverflow.com/a/7580811) FF recommends using this instead: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIProtocolProxyFilter
(thoughts @salomegeo ?)
@lucyhe - can this be closed?
done https://github.com/uProxy/uproxy/pull/1102