Closed Bug 807659 Opened 12 years ago Closed 12 years ago

B2G 3G: Support HTTPS proxy

Categories

(Core :: DOM: Device Interfaces, defect)

x86_64
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20
blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed
firefox20 --- fixed

People

(Reporter: hub, Assigned: st3fan)

Details

(Keywords: b2g-testdriver, unagi)

Attachments

(1 file, 2 obsolete files)

https does not work if APN requires proxy I use Speakout wireless (see bug 807312) http works through the proxy. https seems to be like other protocol and not routed through the proxy. This make things like twitter or other sites that require https not work at all. I can't dogfood.
in short, no twitter, no facebook (like if I care), nor anything requiring https. Works fine from Fennec on Android with the same carrier / APN settings (Nightly only)
Same with Petro Canada Mobility. Requires a proxy and does not work with HTTPS currently.
This should fix it. diff --git a/dom/system/gonk/NetworkManager.js b/dom/system/gonk/NetworkManager.js index a5e7869..30a9aa9 100644 --- a/dom/system/gonk/NetworkManager.js +++ b/dom/system/gonk/NetworkManager.js @@ -449,8 +449,10 @@ NetworkManager.prototype = { // Do not use this proxy server for all protocols. Services.prefs.setBoolPref("network.proxy.share_proxy_settings", false); Services.prefs.setCharPref("network.proxy.http", this.active.httpProxyHost); + Services.prefs.setCharPref("network.proxy.ssl", this.active.httpProxyHost); let port = this.active.httpProxyPort == "" ? 8080 : this.active.httpProxyPort; Services.prefs.setIntPref("network.proxy.http_port", port); + Services.prefs.setIntPref("network.proxy.ssl_port", port); } catch (ex) { debug("Exception " + ex + ". Unable to set proxy setting for " + this.active.name + " network interface.");
Proposed patch by sarentz
I manually applied the above patch to my 2012-11-28 build by patching /system/b2g/omni.ja I can now load HTTPS sites in the browser and also use applications that use HTTPS (like for example the Market Place) This would be great to have for testers. S.
So who should we set to review this?
wait for an updated patch. It is coming soon. I'll get things moving.
Component: General → DOM: Device Interfaces
OS: Linux → Gonk (Firefox OS)
Product: Boot2Gecko → Core
Target Milestone: --- → mozilla17
Version: unspecified → Trunk
Summary: https does not work if APN requires proxy → B2G 3G: Support HTTPS proxy
Right now bug 817036 is preventing anything from working. But this patch should be ok.
Attachment #686418 - Attachment is obsolete: true
Comment on attachment 687342 [details] [diff] [review] Bug 807659 - Also configure HTTPS proxy from APN settings. r= Philip, if you know a better reviewer, please chime in. Thanks.
Attachment #687342 - Flags: review?(philipp)
Comment on attachment 687342 [details] [diff] [review] Bug 807659 - Also configure HTTPS proxy from APN settings. r= Adding blake.
Attachment #687342 - Flags: review?(mrbkap)
This bug is followup work for the following bug that Jose worked on: B2G 3G: Support HTTP proxy https://bugzilla.mozilla.org/show_bug.cgi?id=740640 Note the HTTP vs HTTPS. The problem is that the original work only configures the HTTP proxy while having a proxy configured for the APN actually explicitly means that it should also be used for HTTPS. My small patch corrects this by also configuring network.proxy.ssl and network.proxy.ssl_port. Without this, HTTPS will simply not work, which leads to a bad user experience as many sites (including our own like the Marketplace) require HTTPS. Initially I thought that the HTTP and HTTPS proxy maybe should be specified separately. But this does not seem to be the case. To confirm that I have looked at iOS and Android: both only allow you to set the proxy hostname and port and then use those settings to configure both the HTTP and HTTPS proxy. This fix is probably not super important for Telefonica, but in Canada we happen to use two (cheap, prepaid) providers for the dogfooding program that both require a proxy to go online. I have tested the patch on my B2G phone with one of those providers and things seem to work well. I can now fully use the web. Also note that many providers listed in the APN presets that we ship require a proxy host. So this fix would apply to all of those networks too.
Requesting blocking-basecamp. See comment 12.
blocking-basecamp: --- → ?
Comment on attachment 687342 [details] [diff] [review] Bug 807659 - Also configure HTTPS proxy from APN settings. r= Review of attachment 687342 [details] [diff] [review]: ----------------------------------------------------------------- r=me. Thanks for the patch, Stefan! This should definitely block basecamp and should land in v1.
Attachment #687342 - Flags: review?(philipp)
Attachment #687342 - Flags: review?(mrbkap)
Attachment #687342 - Flags: review+
blocking-basecamp: ? → +
Updated the reviewer in the commit message.
Attachment #687342 - Attachment is obsolete: true
Stefan, it looks like you're working on this. So, I assigned you as the owner. If you're not, please remove your name. :) Thanks.
Assignee: nobody → sarentz
Comment on attachment 687898 [details] [diff] [review] 687342: Bug 807659 - Also configure HTTPS proxy from APN settings. r=philikon [Approval Request Comment] Blocking basecamp b2g only.
Attachment #687898 - Flags: approval-mozilla-beta?
Attachment #687898 - Flags: approval-mozilla-aurora?
Attachment #687898 - Flags: approval-mozilla-beta?
Attachment #687898 - Flags: approval-mozilla-beta+
Attachment #687898 - Flags: approval-mozilla-aurora?
Attachment #687898 - Flags: approval-mozilla-aurora+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: