Re: [b2g] proxy settings in FirefoxOS

2013-08-21 Thread Frederik Braun
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 20.08.2013 16:10, Julien Wajsberg wrote:
 Please file a bug ! :)

Some Web APIs (and probably other things) don't respect the proxy
settings in the prefs [2].
There's also a more vague bug that also discusses current hacks to
make proxying partially work [1].




[1] https://bugzilla.mozilla.org/show_bug.cgi?id=829766
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=902345


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlIUdwkACgkQLMWHMbBuBnLX8QD/fYujl3Tepowbv6ry9sW0MVnY
P3f93nsxnFhXWIzpJpIBAJvtXw7AiUc4Hbu0zRaXjBKFavUlp5q2E7oKHd1kl1mL
=Q7ZS
-END PGP SIGNATURE-
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] proxy settings in FirefoxOS

2013-08-20 Thread Julien Wajsberg
Le 20/08/2013 00:11, Fabrice Desre a écrit :

 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.


I really think we need a way to configure a HTTP(s) proxy. In the past I
have been frustrated by the impossibility to do this on Firefox for
Android in some situations.

Please file a bug ! :)



signature.asc
Description: OpenPGP digital signature
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] proxy settings in FirefoxOS

2013-08-19 Thread Hallvord Steen
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, );
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. 

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?

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?

Thanks in advance,
Hallvord 
Site compatibility tester, FirefoxOS/Firefox Android QA
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] proxy settings in FirefoxOS

2013-08-19 Thread Dave Hylands
Hi Hallvord,

So I did an mxr search for network.proxy.http and it seems that B2G might be 
manipulationg/clearing the pref:
https://mxr.mozilla.org/mozilla-central/source/dom/system/gonk/NetworkManager.js#691

I believe that the proxy stuff is being used by B2G to support tethering, so 
you may need to modify NetworkManager.js to get things working the way you want.

Dave Hylands

- Original Message -
 From: Hallvord Steen hst...@mozilla.com
 To: dev-b2g@lists.mozilla.org
 Sent: Monday, August 19, 2013 2:50:27 PM
 Subject: [b2g] proxy settings in FirefoxOS
 
 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, );
 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.
 
 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?
 
 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?
 
 Thanks in advance,
 Hallvord
 Site compatibility tester, FirefoxOS/Firefox Android QA
 ___
 dev-b2g mailing list
 dev-b2g@lists.mozilla.org
 https://lists.mozilla.org/listinfo/dev-b2g
 
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] proxy settings in FirefoxOS

2013-08-19 Thread Fabrice Desre
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, );
 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
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g