Closed Bug 824467 Opened 12 years ago Closed 12 years ago

WebSMS: getThreadList always returns empty object in non-oop mode

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 849739

People

(Reporter: vicamo, Unassigned)

References

Details

Attachments

(1 file)

In bug 814514, we found |SmsManager.getThreadList()| works only in OOP mode by creating a simple marionette based test script. The mResult member in SmsRequest contains expected attributes as listed in SmsThreadListItem. However, the |event.target.result| got from request callback is always an empty object. This is a serious bug for DOM API, but not for B2G because its SMS app always runs in OOP mode, so it's not affected.
We have the same problem in bug 820780, however, we can add a '__exposedProps__' attribute in the returned object to avoid this issue. So, maybe we should do the same thing to the returned array in SmsDatabaseService.getThreadList().
You can use ObjectWrapper.jsm to fix this.
Summary: WebSMS: getThreadList always returns empty object → WebSMS: getThreadList always returns empty object in non-oop mode
Will be automatically fixed in bug 849739, which rewrites GetThreadList with DOMCursor.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: