Bug 818353 - Part 4: DOM changes - use default client id (0) in PhoneNumberUtils. f=edgar r=gwagner
authorJessica Jong <jjong@mozilla.com>
Fri, 18 Oct 2013 15:01:03 +0800
changeset 165070 3867f316204ee309a436e93bb912267aeac783bb
parent 165069 033a0cdb8c03439a90da7b132d3557703a1703e3
child 165071 e7a4fe2d9e5ecc0d629e2d0831d83b5b808feb9b
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgwagner
bugs818353
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 818353 - Part 4: DOM changes - use default client id (0) in PhoneNumberUtils. f=edgar r=gwagner
dom/phonenumberutils/PhoneNumberUtils.jsm
--- a/dom/phonenumberutils/PhoneNumberUtils.jsm
+++ b/dom/phonenumberutils/PhoneNumberUtils.jsm
@@ -39,17 +39,18 @@ this.PhoneNumberUtils = {
   _mcc: '724',
 
   getCountryName: function getCountryName() {
     let mcc;
     let countryName;
 
 #ifdef MOZ_B2G_RIL
     // Get network mcc
-    let voice = mobileConnection.voiceConnectionInfo;
+    // TODO: Bug 926740 - PhoneNumberUtils for multisim
+    let voice = mobileConnection.getVoiceConnectionInfo(0);
     if (voice && voice.network && voice.network.mcc) {
       mcc = voice.network.mcc;
     }
 
     // Get SIM mcc
     let iccInfo = icc.iccInfo;
     if (!mcc && iccInfo && iccInfo.mcc) {
       mcc = iccInfo.mcc;