=== Web API ===
The change is quite simple, -- navigator.mozMobileConnection becomes an array of nsIDOMMozMobileConnection obect, i.e. navigator.mozMobileConnections. API users can use The length of the array is actually the number of services provided on a device. And the index of the array is used as 'serviceId.' as an index to access corresponding service object.
We don't modify the existed interface, like nsIDOMMozMobileConnection, nsIDOMMozMobileConnectionInfo ...etc, to minimize the coding effort of gaia.
interface nsIMozNavigatorMobileConnectionManager: nsISupports
{
// An array of nsIDOMMozMobileConnection.
readonly attribute jsval mozMobileConnections;
};
interface nsIDOMMozMobileConnection : nsIDOMEventTarget
{