Closed
Bug 824465
Opened 13 years ago
Closed 13 years ago
B2G SMS: delivery state is reset to "sending" when getting the sms-delivery event
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: julienw, Assigned: julienw)
References
Details
Attachments
(1 file, 1 obsolete file)
482 bytes,
patch
|
vicamo
:
review+
|
Details | Diff | Splinter Review |
blocking a smoketest bb+ bug so blocking.
Please see Bug 822055 comment 28 for some more information;
I'll try to have a fix for this today.
Assignee | ||
Comment 1•13 years ago
|
||
As the delivery property in SmsMessage is read onyl, I have to create a new SmsMessage in the "sms-sent" message handler, with the correct delivery value, so that it is correctly carried on in the "sms-delivery" message handler. A clone method in SmsMessage might be handy ;)
An alternative is to directly use DOM_SMS_DELIVERY_SENT in "sms-delivery" handler as well as we may assume that a successful or failed delivery means that the message was sent. Tell me if you prefer this way and I'll make a new patch.
This fixes the "throbber is always there" part of Bug 822055 for me.
:philikon are you the correct person to review this ?
Attachment #695471 -
Flags: review?(philipp)
![]() |
||
Updated•13 years ago
|
Target Milestone: --- → B2G C3 (12dec-1jan)
Assignee | ||
Comment 3•13 years ago
|
||
Milan> Bug 822055 comment 25
Comment 4•13 years ago
|
||
Comment on attachment 695471 [details] [diff] [review]
patch v1
Review of attachment 695471 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you, but you can simply do:
1439 if (!options.requestStatusReport) {
1440 // No more used if STATUS-REPORT not requested.
1441 delete this._sentSmsEnvelopes[message.envelopeId];
1442 } else {
options.sms = sms;
}
::: dom/sms/src/ril/SmsDatabaseService.js
@@ +13,4 @@
> const RIL_SMSDATABASESERVICE_CONTRACTID = "@mozilla.org/sms/rilsmsdatabaseservice;1";
> const RIL_SMSDATABASESERVICE_CID = Components.ID("{a1fa610c-eb6c-4ac2-878f-b005d5e89249}");
>
> +const DEBUG = true;
Please don't commit debug code
Attachment #695471 -
Flags: review?(philipp)
Assignee | ||
Comment 5•13 years ago
|
||
vicamo> I was thinking that maybe we didn't want to have internal structure directly exposed outside (otherwise, why are we creating a new object for the broadcastMessage call ? we could send options.sms as well ?)
Assignee | ||
Comment 6•13 years ago
|
||
here the new patch.
I verified that it fixes the bug as well.
If this is r+ please go on and commit this as I can't checkin myself :-)
Thanks :vicamo !
Attachment #695471 -
Attachment is obsolete: true
Attachment #695627 -
Flags: review?(vyang)
Comment 7•13 years ago
|
||
Comment on attachment 695627 [details] [diff] [review]
patch v2
Review of attachment 695627 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you :) I'm working on implementing emulator sms delivery report support, so that we can create test cases for similar problems.
Attachment #695627 -
Flags: review?(vyang) → review+
Updated•13 years ago
|
Comment 8•13 years ago
|
||
![]() |
||
Comment 9•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•13 years ago
|
||
We need a checkin to aurora and b2g18 too :)
Thanks !
Keywords: checkin-needed
Comment 11•13 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/a07ba7a783ce
https://hg.mozilla.org/releases/mozilla-b2g18/rev/de4cca0723ec
status-b2g18:
--- → fixed
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•