Closed Bug 980398 Opened 11 years ago Closed 11 years ago

Remove navigator.mozMobileConnection uses from the cost control app

Categories

(Firefox OS Graveyard :: Gaia::Cost Control, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: gsvelto, Assigned: mai, Mentored)

References

Details

(Whiteboard: [lang=javascript])

Attachments

(1 obsolete file)

The cost control app still uses navigator.mozMobileConnection in one place and in some unit-tests; this should be removed and the relevant code must be made to rely only on navigator.mozMobileConnections (and its mock for the tests).
Assignee: nobody → mri
Attached file patch v1.0 (obsolete) —
Could you review the patch? Regards
Attachment #8388410 - Flags: review?(salva)
Comment on attachment 8388410 [details] [review] patch v1.0 Despite I totally agree with this change. Let's land the manager with its tests first and then, in a follow up, we land the adaptation of the current CC. Remove the adaptation part and ask for my review again. Thank you.
Attachment #8388410 - Flags: review?(salva)
Ups, this comment is for bug 977077
Whiteboard: [mentor=:gsvelto][lang=javascript]
While looking around I've noticed that this variable is not used anymore and the check it does is always true, it would be good if you could remove it as part of this bug: https://github.com/mozilla-b2g/gaia/blob/c3c12544f7acbf0e66d7d481c0718634e068d3ce/apps/costcontrol/js/widget.js#L22
Status: NEW → ASSIGNED
Hi Gabriele, this is not completely true, on b2g-desktop mobileConnections is undefined as you can see on the Bug 986833 -The cost control app doesn't work on b2g-desktop. I have to put this check on the startup of my application. Regards
> this is not completely true, on b2g-desktop mobileConnections is undefined > as you can see on the Bug 986833 -The cost control app doesn't work on > b2g-desktop. I have to put this check on the startup of my application. I see, makes sense.
Comment on attachment 8388410 [details] [review] patch v1.0 Updated the PR, Salva, could you review the patch? Regards
Attachment #8388410 - Flags: review?(salva)
Comment on attachment 8388410 [details] [review] patch v1.0 Please address the problems on GitHub and ask for my review again. Thank you!
Attachment #8388410 - Flags: review?(salva)
Resolved by bug 977077
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Mentor: gsvelto
Whiteboard: [mentor=:gsvelto][lang=javascript] → [lang=javascript]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: