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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog, firefox42 fixed)

RESOLVED FIXED
FxOS-S2 (10Jul)
tracking-b2g backlog
Tracking Status
firefox42 --- fixed

People

(Reporter: freesamael, Assigned: freesamael)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

The JS observe function in SmsService / MmsService didn't convert the subject through QueryInterface, which causes the object becomes empty on KK.
Assignee: nobody → sawang
Depends on: 1023695
No longer depends on: 922580
Ensure deletedInfo object is converted by subject.QueryInterface() when "sms-deleted" topic observed.
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 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+
Ensure deletedInfo object is converted by subject.QueryInterface() when "sms-deleted" topic observed.
Attachment #8631407 - Attachment description: Fix observe function in SmsService/MmsService → (v2) Fix observe function in SmsService/MmsService. r=btseng
Attachment #8631407 - Flags: review+
Attachment #8630966 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S2 (10Jul)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: