On 08/19/2013 02:50 PM, Hallvord Steen wrote:
> Hello,
> I'm working on debugging how web pages work (or not) in the FirefoxOS web
> browser (I have a Keon running Boot2Gecko 1.0.1.0-prerelease - build id
> 20130613185731 device for this purpose). I've been trying to figure out how
> to set up a HTTP proxy for debugging. Basically, I want to have Fiddler or
> Charles proxy running on a computer on the same WiFi network, and give the
> web browser on the phone that computer's local IP address as proxy server.
> The proxy setting can be specified per-WiFi or globally for HTTP(S) traffic.
> It should be possible per this documentation:
> https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Security/Intercepting_traffic_using_a_proxy
>
> There are two JS files with prefs - one in the web browser's profile folder
> (prefs.js) and one in the /system/b2g tree (user.js). I've tried to modify
> either of them to add prefs like these:
>
> user_pref("network.proxy.http", "192.168.1.8");
> user_pref("network.proxy.http_port", 8888);
> user_pref("network.proxy.type", 1);
>
> I've restarted the OS after pushing the modified files to the relevant
> folders. However, the settings seem to have no effect.
Your snippet should work if you add that to the profile user.js file
(*not* in the prefs.js file). You probably also need to set
network.proxy.ssl and network.proxy.ssl_port
> Actually, debugging HTTP traffic and studying application behaviour from the
> HTTP perspective seems like a very important requirement for both app and
> site developers, so I'd expect a setting somewhere in the developer UI. There
> is indeed a setting under "Cellular and data > Data settings" but it seems to
> be for data traffic over a mobile network specifically, not for WiFi, and
> setting it has no effect either. Same with the ril.data.httpProxyHost setting
> (which may be what the UI under "Cellular and data" is about).
>
> Two questions:
> 1) Are those settings supposed to work, or are proxy capabilities removed by
> design?
No proxy capability has been removed.
> 2) Is it a known issue that such functionality should exist and work - any
> bugs reported? If not, and if I'd like to push for getting this working (with
> settings in the UI), where should I report a bug?
I doubt that we want to expose a UI for that. If you want to file a bug,
use the Boot2Gecko::Gaia component in bugzilla.
Fabrice
--
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g