Closed
Bug 1181466
Opened 10 years ago
Closed 10 years ago
[B2G][SMS][MMS] nsIDeletedMessageInfo object becomes empty in "sms-deleted" JS observers on KK.
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(tracking-b2g:backlog, firefox42 fixed)
| Tracking | Status | |
|---|---|---|
| firefox42 | --- | fixed |
People
(Reporter: freesamael, Assigned: freesamael)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
3.21 KB,
patch
|
freesamael
:
review+
|
Details | Diff | Splinter Review |
The JS observe function in SmsService / MmsService didn't convert the subject through QueryInterface, which causes the object becomes empty on KK.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → sawang
Updated•10 years ago
|
Updated•10 years ago
|
| Assignee | ||
Comment 1•10 years ago
|
||
Ensure deletedInfo object is converted by subject.QueryInterface()
when "sms-deleted" topic observed.
| Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8630966 [details] [diff] [review]
Fix observe function in SmsService/MmsService
Hi Bevis,
Could you help to review this patch?
Attachment #8630966 -
Flags: review?(btseng)
Comment 3•10 years ago
|
||
Comment on attachment 8630966 [details] [diff] [review]
Fix observe function in SmsService/MmsService
Review of attachment 8630966 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the comment addressed.
Thanks!
::: dom/mobilemessage/gonk/SmsService.js
@@ +1314,4 @@
> }
>
> + if (deletedInfo && deletedInfo.deletedMessageIds) {
> + for (let id of deletedInfo.deletedMessageIds) {
I think we could scan the queue as the first-level for-loop with deletedMessageIds.indexOf(this.queue[i].messageId) to check for better performance if massive deletion requested from App.
How do you think?
IMO, it should not be a normal case with massive messages in queue before sending.
Sorry for not being aware of this when reviewing the patch at first glance.
Attachment #8630966 -
Flags: review?(btseng) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
Ensure deletedInfo object is converted by subject.QueryInterface()
when "sms-deleted" topic observed.
| Assignee | ||
Updated•10 years ago
|
Attachment #8631407 -
Attachment description: Fix observe function in SmsService/MmsService → (v2) Fix observe function in SmsService/MmsService. r=btseng
Attachment #8631407 -
Flags: review+
| Assignee | ||
Updated•10 years ago
|
Attachment #8630966 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S2 (10Jul)
You need to log in
before you can comment on or make changes to this bug.
Description
•