Closed Bug 848233 Opened 11 years ago Closed 11 years ago

[Gaia][Contacts] Use new WebAPI to get SIM contacts

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allstars.chh, Assigned: allstars.chh)

References

Details

Attachments

(1 file, 1 obsolete file)

In Bug 847741 we're going to move the mozContacts.getSimContacts to mozMobileConnection.icc (nsIDOMIccManager), so this bug is filed in Gaia side to make the corresponding change.
Assignee: nobody → jmcf
(In reply to Yoshi Huang[:allstars.chh][:yoshi] from comment #0)
> In Bug 847741 we're going to move the mozContacts.getSimContacts to
> mozMobileConnection.icc (nsIDOMIccManager), so this bug is filed in Gaia
> side to make the corresponding change.

please update this, once the platform side of this bug is up and running.
I'll let you know when Bug 847741 is r+ and sr+,
hope we could commit into gecko and gaia at the same time.
Hi, Jose M.
Bug 847741 is already r+ and sr+, 
can you help to prepare Gaia side modification?

Or if you're not available,
It seems Gaia change is only a few lines,
I could do this.

Thank you.
ping? Jose M. Cantera 
Sorry I don't know your irc name.
(In reply to Yoshi Huang[:allstars.chh][:yoshi] from comment #4)
> ping? Jose M. Cantera 
> Sorry I don't know your irc name.

feel free to submit a Gaia patch and add me as a reviewer

thanks!
I guess this work is not part of 1.1 isnt?

Thx!
(In reply to Francisco Jordano [:arcturus] from comment #6)
> I guess this work is not part of 1.1 isnt?

No, it isn't in 1.1.
Assignee: jmcf → allstars.chh
Attached file [Pull Request]
Attachment #744987 - Attachment is obsolete: true
Comment on attachment 744989 [details]
[Pull Request]

Hi, Jose
Can you review this patch for me?

thanks
Attachment #744989 - Flags: review?(jmcf)
(In reply to Yoshi Huang[:allstars.chh][:yoshi] from comment #7)
> (In reply to Francisco Jordano [:arcturus] from comment #6)
> > I guess this work is not part of 1.1 isnt?
> 
> No, it isn't in 1.1.

the patch would only work with MozCentral, right?
(In reply to Jose M. Cantera from comment #11)
> the patch would only work with MozCentral, right?

Yes,
But I haven't landed Bug 847741 yet.
If I need to land it first please let me know.
Hi Yoshi,

The code changes look trivial, but I would prefer to have the Gecko patch landed in Moz Central before adding the r+ to this patch

thanks for your help!
Stealing the review since it's already causing:
E/GeckoConsole(  948): [JavaScript Error: "TypeError: navigator.mozContacts.getSimContacts is not a function" {file: "app://communications.gaiamobile.org/contacts/js/utilities/import_sim_contacts.js" line: 54}]
Attachment #744989 - Flags: review?(jmcf) → review+
https://github.com/mozilla-b2g/gaia/commit/488d82ecc92e3d6067293c90070fba00cf95900e
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Hm the TypeError is gone but I get the "Could not import contacts from SIM" message :(
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I think I have tested this before sending Pull Request,
anyway I'll test it again to check this.

Thanks for the review and report this, Gregor.
Hi, Gregor
I just test it and it seems working fine.

Gaia: 674fdd8a15ca582eb179310c7a2f4f474e38b645
Gecko(mercurial): changeset:   130780:69008b1fd6eb

Can you tell me what error you met?

Thanks
Gregor, I still cannot reproduce the error you said,
can you help to check this?

Thanks
Status: REOPENED → NEW
Flags: needinfo?(anygregor)
Hm now it works. No idea what happened.
Status: NEW → RESOLVED
Closed: 11 years ago11 years ago
Flags: needinfo?(anygregor)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: