Closed
Bug 855607
Opened 12 years ago
Closed 12 years ago
B2G MMS: Notify user while retrieving expiried notification indication.
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: ctai, Assigned: ctai)
References
Details
Attachments
(1 file, 4 obsolete files)
1.80 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → ctai
Assignee | ||
Comment 1•12 years ago
|
||
When download option set to manual, the end user might retrieve an expiried notification. We should deal with this situation.
Assignee | ||
Comment 2•12 years ago
|
||
In OMA-TS-MMS_ENC-V1_3-20110913-A, tbale 3 Header fields of M-Notification.ind PDU in chapter 6.2 mentions that X-Mms-Expiry is mandatory field.It is the length of time the message will be available. The field has only one format, relative.
Assignee | ||
Comment 3•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #732646 -
Flags: feedback?(vyang)
Comment 6•12 years ago
|
||
Comment on attachment 732646 [details] [diff] [review]
Patch v1.2
Review of attachment 732646 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mms/src/ril/MmsService.js
@@ +1050,5 @@
> // For X-Mms-Report-Allowed
> let wish = notification.headers["x-mms-delivery-report"];
> + // The x-mms-expiry is mandatory and relative time in notification indication.
> + let expiryTime = notification.headers["x-mms-expiry"] * 1000;
> + notification.expiryDate = Date.now() + expiryTime;
Please don't actively assign any header values as direct attributes of the message object.
@@ +1353,5 @@
> + aRequest.notifyDeleteMessageFailed(aRv);
> + }
> + };
> + gMobileMessageDatabaseService
> + .deleteMessageRecordById(aMessageRecord.id, notifyCallback);
Please don't actively delete a message. That's user's decision. Return an error instead.
::: dom/mobilemessage/interfaces/nsIRilMobileMessageDatabaseService.idl
@@ +88,5 @@
> + * |aCallback| nsIRilMobileMessageDatabaseCallback: a callback for notifying
> + * the deletion result.
> + */
> + void deleteMessageRecordById(in long aMessageId,
> + in nsIRilMobileMessageDatabaseCallback aCallback);
You don't need this.
::: dom/mobilemessage/src/ril/MobileMessageDatabaseService.js
@@ +1385,5 @@
> });
> },
>
> + deleteMessageRecordById: function deleteMessageRecordById(aMessageId, aCallback) {
> + if (DEBUG) debug("Deleting message with ID " + aMessageId);
ditto.
Attachment #732646 -
Flags: feedback?(vyang) → feedback-
Assignee | ||
Comment 7•12 years ago
|
||
Modified accroding to comment 6.
Attachment #732646 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #734495 -
Flags: review?(vyang)
Comment 8•12 years ago
|
||
Comment on attachment 734495 [details] [diff] [review]
Patch v1.3
Review of attachment 734495 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mms/src/ril/MmsService.js
@@ +1338,5 @@
> debug("Can't find mms content url in database.");
> aRequest.notifyGetMessageFailed(Ci.nsIMobileMessageCallback.INTERNAL_ERROR);
> return;
> }
> + // The x-mms-expiry is mandatory and relative time in notification indication.
nit: new line. Please cite MMS-ENC 6.2 "Multimedia Message Notification" directly:
The field has only one format, relative. The recipient client calculates this
length of time relative to the time it receives the notification.
Attachment #734495 -
Flags: review?(vyang) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Add new line and modify the comment.
Attachment #734495 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 10•12 years ago
|
||
Keywords: checkin-needed
Comment 11•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Assignee | ||
Comment 12•12 years ago
|
||
See chapter 6.2 in OMA-TS-MMS-CTR-V1_3-20110511-C.
Blocks: b2g-mms-conformance
blocking-b2g: --- → leo?
Updated•12 years ago
|
blocking-b2g: leo? → leo+
Whiteboard: [NO_UPLIFT]
Comment 13•12 years ago
|
||
Uplift WIP: https://github.com/vicamo/b2g_mozilla-central/tree/bugzilla/838467/b2g18 , verifying.
Comment 14•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox21:
--- → wontfix
status-firefox22:
--- → wontfix
status-firefox23:
--- → fixed
Whiteboard: [NO_UPLIFT]
Updated•12 years ago
|
Blocks: mms-oma-compliance
Updated•12 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•