Closed
Bug 842235
Opened 11 years ago
Closed 11 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•11 years ago
|
Summary: B2G MMS: retry sent on error → B2G MMS: retry send on error
Updated•11 years ago
|
Assignee: nobody → vyang
Comment 1•11 years ago
|
||
leo+, this bug is needed to fulfill MMS user stories for v1.1
blocking-b2g: --- → leo+
Updated•11 years ago
|
Whiteboard: [by 3/8]
Assignee | ||
Updated•11 years ago
|
Assignee: vyang → ctai
Assignee | ||
Comment 2•11 years ago
|
||
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #722102 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #722665 -
Flags: review?(vyang)
Reporter | ||
Comment 4•11 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•11 years ago
|
||
Attachment #722665 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #722707 -
Flags: review?(vyang)
Reporter | ||
Comment 6•11 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•11 years ago
|
||
Attachment #722707 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #723045 -
Flags: review?(vyang)
Assignee | ||
Comment 8•11 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•11 years ago
|
Attachment #723045 -
Flags: review?(vyang)
Assignee | ||
Comment 9•11 years ago
|
||
Attachment #723045 -
Attachment is obsolete: true
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #723325 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #723326 -
Flags: review?(vyang)
Reporter | ||
Comment 11•11 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•11 years ago
|
||
expect to land 3/11
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 13•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d46a482ab8c0
Keywords: checkin-needed
Comment 14•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d46a482ab8c0
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Comment 15•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/3090ffe00713
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•11 years ago
|
Flags: in-moztrap-
You need to log in
before you can comment on or make changes to this bug.
Description
•