JOSE MANUEL CANTERA FONSECA
unread,Jul 2, 2013, 8:10:29 AM7/2/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gene Lian, EDUARDO FULLEA CARRERA, Vicamo Yang, FRANCISCO BORJA SALGUERO CASTELLANO, dev-webapi, Chia-Hung Tai, Mounir Lamouri, Ken Chang, Jonas Sicking
El 01/07/13 13:45, "Gene Lian" <
cl...@mozilla.com> escribió:
>Hi Eduardo,
>
>The following summarises all the interface changes from the last update.
>Please take a look to decide if it's worth adding in the W3C proposal.
>
>-----
>1. Support |onretrieving| Event for MMS
>
> Please see [1]. This event is going to be fired when the back-end
>starts the retrieving process, which is symmetric to the |onsending|
>event. However, the W3C doesn't consider the |onsending| event either, so
>maybe you don't want to add another |onretrieving| event, though.
I'm wondering if we could just reuse ProgressEvents for this purpose
>
>-----
>2. Enforce Content Blob to be UTF-8 Encoding for MMS
>
> Please see [2]. We used to discuss this topic before. Just for the
>records. Since it's a formal way in W3C to specify the |charset| property
>in the MIME type of Blob object, so the current W3C spec works for me.
>
>-----
>3. Support Retrieval Modes "automatic-home"/"never" for MMS
>
> Please see [3] and [4]. The "never" mode is trivial; sometimes we want
>to completely disable our MMS retrieving. The "automatic-home" mode is
>used for allowing users to automatically download MMS only when they are
>in the home network. The ordinary "automatic" mode will download the MMS
>all the time even if it's roaming, which would cost lots of money.
>
>-----
>4. Add MMS Subject in Thread Object
>
> Please see [5]. It seems the W3C has already exposed this attribute at
>[6]. However, one thing I need to mention is why does the W3C spec only
>expose MMS' |subject| but not SMS' |body|? Btw, if you're hoping to use
>|Conversation.lastMessageID| to fetch all the detailed SMS/MMS content,
>why do you expose the |subject| only, but not for other attributes?
>
>-----
>5. Expose Delivered Time for SMS/MMS
>
> Please see [7]. We have a plan to expose the delivered time (maybe,
>name it as |deliveredTimestamp|) for both SMS/MMS. The original
>|timestamp| specifies the sending/receiving time points but the new
>|deliveredTimestamp| is going to specify the time point(s) when getting
>the delivery report(s). You can imagine this attribute is going to be a
>Date object for SMS or an array of Date objects for MMS.
I believe the semantics of this new field should be the timestamp when the
message actually arrived at destination and not when the delivery report
was received at origin
>
>-----
>6. Add More Error Codes When Failing to Send SMS/MMS
>
> Please see [8] and [9]. The current W3C doesn't define what the error
>codes are going to be returned by the Future object. In Mozilla (we still
>use DOM Request for now), we define the following error codes at [10]
>which is also listed as below:
>
> const unsigned short SUCCESS_NO_ERROR = 0;
> const unsigned short NO_SIGNAL_ERROR = 1;
> const unsigned short NOT_FOUND_ERROR = 2;
> const unsigned short UNKNOWN_ERROR = 3;
> const unsigned short INTERNAL_ERROR = 4;
Unknown error and internal error seem to be the same
> const unsigned short NO_SIM_CARD_ERROR = 5;
I think here we would need to be more generic, maybe we can use something
like SUBSCRIPTION_ERROR
> const unsigned short RADIO_DISABLED_ERROR = 6;
This error seems to be similar to nosignal error. I believe we should not
try to generate too many error states as later will be harder to check for
compliance and interoperability, provided that there could be
implementations not able to report errors with such a precision.