sysapps / telephony

API to manage telephony calls
16 stars 12 forks source link

dial() method needs to treat null as empty string #196

Closed marcoscaceres closed 10 years ago

marcoscaceres commented 11 years ago

Calling dial(null) results in null being converted to "null", which will be passed to the telephony system to deal with. It would be better to at least have it automatically converted to an empty string in WebIDL:

TelephonyCall dial ([TreatNullAs=EmptyString] DOMString remoteParty, optional DialParams params);

The dial() method needs to be redefined as treating null as an empty string. And the prose needs to say what to do with an empty string.

zolkis commented 11 years ago

Agreed.

zolkis commented 10 years ago

Closing.