Closed
Bug 842235
Opened 12 years ago
Closed 12 years ago
B2G MMS: retry send on error
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: vicamo, Assigned: ctai)
References
Details
(Whiteboard: [by 3/8])
Attachments
(1 file, 5 obsolete files)
2.51 KB,
patch
|
vicamo
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Updated•12 years ago
|
Summary: B2G MMS: retry sent on error → B2G MMS: retry send on error
Updated•12 years ago
|
Assignee: nobody → vyang
Comment 1•12 years ago
|
||
leo+, this bug is needed to fulfill MMS user stories for v1.1
blocking-b2g: --- → leo+
Updated•12 years ago
|
Whiteboard: [by 3/8]
Assignee | ||
Updated•12 years ago
|
Assignee: vyang → ctai
Assignee | ||
Comment 2•12 years ago
|
||
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #722102 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #722665 -
Flags: review?(vyang)
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 722665 [details] [diff] [review]
Retry Send MMS
Review of attachment 722665 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mms/src/ril/MmsService.js
@@ +687,5 @@
> return;
> }
>
> + this.retryCount = 0;
> + let that = this;
You don't need this.
@@ +696,5 @@
> + that.retryCount++;
> + let timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
> + timer.initWithCallback((function (){
> + this.send(retryCallback);
> + }).bind(that),
let retryCallback = (function (mmsStatus, msg) {
if ((MMS.MMS_PDU_ERROR_TRANSIENT_FAILURE == mmsStatus ||
MMS.MMS_PDU_ERROR_PERMANENT_FAILURE == mmsStatus) &&
this.retryCount < MAX_RETRY_COUNT) {
this.retryCount++;
let timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
timer.initWithCallback(this.send.bind(this, retryCallback),
DELAY_TIME_TO_RETRY,
Ci.nsITimer.TYPE_ONE_SHOT);
return;
}
callbackIfValid(mmsStatus, msg);
}).bind(this);
this.send(retryCallback);
@@ +702,5 @@
> + Ci.nsITimer.TYPE_ONE_SHOT);
> + return;
> + }
> + if (callback) {
> + callback(mmsStatus, msg);
callbackIfValid instead.
@@ +713,5 @@
> + * A callback function that takes two arguments: one for
> + * X-Mms-Response-Status, the other for the parsed M-Send.conf message.
> + */
> + send: function send(callback) {
> + let callbackIfValid = function callbackIfValid(mmsStatus, msg) {
You actually pass |retryCallback| to |send|, so the |callback| here is always valid.
Attachment #722665 -
Flags: review?(vyang)
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #722665 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #722707 -
Flags: review?(vyang)
Reporter | ||
Comment 6•12 years ago
|
||
Comment on attachment 722707 [details] [diff] [review]
Retry Send MMS
Review of attachment 722707 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/mms/src/ril/MmsService.js
@@ +702,5 @@
> + }
> +
> + callbackIfValid(mmsStatus, msg);
> + }).bind(this);
> + },
Have you tried it? You missed send() here.
Attachment #722707 -
Flags: review?(vyang) → review-
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #722707 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #723045 -
Flags: review?(vyang)
Assignee | ||
Comment 8•12 years ago
|
||
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #6)
> Comment on attachment 722707 [details] [diff] [review]
> Retry Send MMS
>
> Review of attachment 722707 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: dom/mms/src/ril/MmsService.js
> @@ +702,5 @@
> > + }
> > +
> > + callbackIfValid(mmsStatus, msg);
> > + }).bind(this);
> > + },
>
> Have you tried it? You missed send() here.
My bad...orz
Assignee | ||
Updated•12 years ago
|
Attachment #723045 -
Flags: review?(vyang)
Assignee | ||
Comment 9•12 years ago
|
||
Attachment #723045 -
Attachment is obsolete: true
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #723325 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #723326 -
Flags: review?(vyang)
Reporter | ||
Comment 11•12 years ago
|
||
Comment on attachment 723326 [details] [diff] [review]
Retry Send MMS
Review of attachment 723326 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you :)
Attachment #723326 -
Flags: review?(vyang) → review+
Comment 12•12 years ago
|
||
expect to land 3/11
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 13•12 years ago
|
||
Keywords: checkin-needed
Comment 14•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Comment 15•12 years ago
|
||
status-b2g18:
--- → fixed
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → wontfix
status-firefox22:
--- → fixed
Updated•12 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•