mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 994461 - Part 4: MMS changes for IccInfo WebIDL. r=bevistzeng
This commit is contained in:
parent
352b86961b
commit
c4816f2f8b
@ -339,10 +339,10 @@ MmsConnection.prototype = {
|
|||||||
* Get phone number from iccInfo.
|
* Get phone number from iccInfo.
|
||||||
*
|
*
|
||||||
* If the icc card is gsm card, the phone number is in msisdn.
|
* If the icc card is gsm card, the phone number is in msisdn.
|
||||||
* @see nsIDOMMozGsmIccInfo
|
* @see nsIGsmIccInfo
|
||||||
*
|
*
|
||||||
* Otherwise, the phone number is in mdn.
|
* Otherwise, the phone number is in mdn.
|
||||||
* @see nsIDOMMozCdmaIccInfo
|
* @see nsICdmaIccInfo
|
||||||
*/
|
*/
|
||||||
getPhoneNumber: function() {
|
getPhoneNumber: function() {
|
||||||
let number;
|
let number;
|
||||||
@ -351,10 +351,10 @@ MmsConnection.prototype = {
|
|||||||
let iccInfo = null;
|
let iccInfo = null;
|
||||||
let baseIccInfo = this.radioInterface.rilContext.iccInfo;
|
let baseIccInfo = this.radioInterface.rilContext.iccInfo;
|
||||||
if (baseIccInfo.iccType === 'ruim' || baseIccInfo.iccType === 'csim') {
|
if (baseIccInfo.iccType === 'ruim' || baseIccInfo.iccType === 'csim') {
|
||||||
iccInfo = baseIccInfo.QueryInterface(Ci.nsIDOMMozCdmaIccInfo);
|
iccInfo = baseIccInfo.QueryInterface(Ci.nsICdmaIccInfo);
|
||||||
number = iccInfo.mdn;
|
number = iccInfo.mdn;
|
||||||
} else {
|
} else {
|
||||||
iccInfo = baseIccInfo.QueryInterface(Ci.nsIDOMMozGsmIccInfo);
|
iccInfo = baseIccInfo.QueryInterface(Ci.nsIGsmIccInfo);
|
||||||
number = iccInfo.msisdn;
|
number = iccInfo.msisdn;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user