Bug 898202 - [B2G][MMS]Unable to send/receive MMS using AT&T or prepaid T-Mobile SIMs. r=vyang, a=leo+
authorChia-hung Tai <ctai@mozilla.com>
Fri, 26 Jul 2013 18:30:47 +0800
changeset 119821 1fe3339e3d9638cb8b0a6d4bebed9df47b76e783
parent 119820 b32a6a58c97da091655f4f7e20d2aedf3d177c3d
child 119822 09cf0a87492951002e76e3bb63dd3403e5a5a85e
push id1011
push userryanvm@gmail.com
push dateMon, 29 Jul 2013 22:55:57 +0000
reviewersvyang, leo
bugs898202
milestone18.1
Bug 898202 - [B2G][MMS]Unable to send/receive MMS using AT&T or prepaid T-Mobile SIMs. r=vyang, a=leo+
dom/mobilemessage/src/ril/MmsService.js
--- a/dom/mobilemessage/src/ril/MmsService.js
+++ b/dom/mobilemessage/src/ril/MmsService.js
@@ -281,16 +281,21 @@ XPCOMUtils.defineLazyGetter(this, "gMmsC
      * Update the MMS proxy info.
      */
     updateProxyInfo: function updateProxyInfo() {
       if (this.proxy === null || this.port === null) {
         if (DEBUG) debug("updateProxyInfo: proxy or port is not yet decided." );
         return;
       }
 
+      if (!this.port) {
+        this.port = 80;
+        if (DEBUG) debug("updateProxyInfo: port is 0. Set to defult port 80.");
+      }
+
       this.proxyInfo =
         gpps.newProxyInfo("http", this.proxy, this.port,
                           Ci.nsIProxyInfo.TRANSPARENT_PROXY_RESOLVES_HOST,
                           -1, null);
       if (DEBUG) debug("updateProxyInfo: " + JSON.stringify(this.proxyInfo));
     },
 
     /**