Orfox Proxy at Java layer Update

This is a document about communications with mozilla about the java layer modifications required.
Added by amoghbl1 over 2 years ago

The Firefox for Android applications have multiple calls at the Java/Android layer where it does not proxy the httpclient connection that it initializes.
Bug reported at mozilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=507641
This depends on a few more bugs and resolving this is necessary for a final release.

rnewman of mozilla (mobile on irc.mozilla.org) suggested looking at the https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/background/healthreport/ProfileInformationCache.java class to design a ProxyController.java class which would make calls to the Gecko Layer to check whether a proxy is set and to apply it to the httpclient connection.

Another update from mozilla about http connections, as of Android M, they are going to replace all org.apache.http imports (which have now been deprecated) with the ch.boye.httpclientandroidlib . I am working on this bug as well, it can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=1169421. This work is going to be necessary to make a ProxyController class which would make it easier to make.


Comments

Added by hans over 2 years ago

Nice work syncing up with the Mozilla team! Just curious whether you discussed using ch.boye versus Apache HttpClient for Android (https://hc.apache.org/httpcomponents-client-4.3.x/android-port.html). It looks like ch.boye isn't maintained while Apache HttpClient for Android is.