Ken, Can someone from your team explain the design here?
/ Jonas On Nov 17, 2013 11:37 PM, "Paul Theriault" <ptheria...@mozilla.com> wrote: > > On Nov 18, 2013, at 5:56 PM, Jonas Sicking wrote: > > > On Sun, Nov 17, 2013 at 8:50 PM, Paul Theriault <ptheria...@mozilla.com> > wrote: > >> I was curious too, so I dived into the code in a little: > >> > >> For mobile data (i.e. 3g etc), the proxy is set on the APN using the > mozSettings API to configure the "ril.data.apnSettings" setting[1] . The > RIL code registers a new network interface [2] which uses the Gonk > NetworkManager[3] to set the proxy. NetworkManager uses Gonk > NetworkService[4] to change the necessary prefs for a proxy to be set. > (see [4] for the exact prefs) > >> > >> Wifi also uses the gonk NetworkService [5] directly to set a proxy, > although seems there is a bug somewhere here. (see Dimi's comment in [6]) > > Sorry I should have been more clear. Currently setting a proxy in the UI > in Firefox results in several preferences being set. So in this case, this > Gonk Network Service ends up setting those same preferences. IE ultimately > both the RIL proxy and the Wifi proxy configure a proxy by using gecko > preferences, in the same way a proxy is set on desktop Firefox. I haven't > looked deeper to see how these preferences are actually used in the network > stack but since I saw it setting preferences, I assumed it was the same > mechanism as Firefox desktop. I'd love to hear from someone who actually > knows this code. > > > > > It's unclear to me what the implications of this are? > > as above > > > > > How does this behave differently from if we were to set the network > > proxies through gecko? > > as above > > > > > Does this mean that we can set per-wifi-hotspot proxy settings? > > At the moment there is no Gaia code, so no. It looks like the proxy is > per-interface at the moment, but I suppose we could implement gaia code to > remember proxy values on a per network basis if that was desired. > > > Is > > this exposed in the UI anywhere? > > Not that I know of (I only found this when I was reviewing the gecko code, > and I can't find any reference to it in Gaia). > > > > > Has anyone talked to the network team about advantages/disadvantages > > compared to using gecko proxy configurations? > > Well as above, I think it _is_ the same. But take all my answers here with > a grain of salt - this is as far as I can tell from spending an hour or so > picking through the code. I'd love to hear from someone who has more > experience with this code. > > > > > / Jonas > > _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g