Closed
Bug 784287
Opened 13 years ago
Closed 13 years ago
navigator.mozContacts.getSimContacts() does not return if the SIM card is empty
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: kaze, Assigned: allstars.chh)
References
Details
Testing on Otoro. The following JS code will display a `success' dialog if contacts are found on the SIM card:
var request = navigator.mozContacts.getSimContacts('ADN');
request.onsuccess = function() { alert('success'); };
request.onerror = function() { alert('error'); };
But if the SIM card is empty, neither `onsuccess' nor `onerror' will be triggered.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → allstars.chh
| Assignee | ||
Comment 1•13 years ago
|
||
Hi kaze,
I test with a simcard without any contact in it,
and I just test with my latest gecko + gaia(commit: e56a4e99d238dad0d22bdac2b9c517bbd425a7e7)
But I cannot reproduce this,
I can see error log
GeckoConsole( 104): Content JS LOG at app://contacts.gaiamobile.org/js/contacts_list.js:179 in onerror: Error reading SIM contacts.
I test this by using the Contact app -> Import SIM contacts.
Can you check my procedure is correct?
Or do you mean 'without SIMcard inserted'?
If so, yes, there's a bug in gecko.
I'll work on fixing this first.
Thanks
Status: NEW → ASSIGNED
| Reporter | ||
Comment 2•13 years ago
|
||
it’s been fixed since. WFM now.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•