var numberOfServices = window.navigator.mozMobileConnections.length;
=== Internal API and Implementation ===mozMobileConnection becomes an array of nsIDOMMozMobileConnection in nsINavigatorMobileConnection.idl interface nsIMozNavigatorMobileConnectionManager: nsISupports { // An array of nsIDOMMozMobileConnection. readonly attribute jsval mozMobileConnections; };
Add clientId in the interface of nsIMobileConnectionProvider.idl and change the implementation of getVoiceConnectionInfo, getDataConnectionInfo, and getNetworkSelectionMode.