Closed Bug 980394 Opened 11 years ago Closed 11 years ago

Remove navigator.mozMobileConnection uses from the dialer app

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gsvelto, Assigned: thills, Mentored)

References

Details

(Whiteboard: [lang=javascript])

Attachments

(1 file)

(deleted), text/x-github-pull-request
gsvelto
: review+
Details
The dialer app still uses navigator.mozMobileConnection in a few places including its mock in unit-tests; those uses should be removed and made to rely only on navigator.mozMobileConnections.
Whiteboard: [mentor=:gsvelto][lang=javascript]
Hi Gabriele I like to work on this.Can i get this assigned? Thanks
(In reply to kumar rishav from comment #1) > Hi Gabriele > I like to work on this.Can i get this assigned? A lot of changes here are in the MMI tests which will be rewritten once bug 889737 lands so I don't think it's a good idea to start working on this now. I'm adding the dependency to make this explicit.
Depends on: 889737
Note that some chunks of the dialer app were moved to the new callscreen app in bug 990003 and a stray navigator.mozMobileConnection use was moved there too; that should be removed as part of this bug.
Updated the dependencies, the MMI related parts are gone as part of bug 1002327 but we've still left with two uses one in apps/callscreen/js/calls_handler.js and the other in apps/communications/dialer/js/telephony_helper.js.
No longer blocks: sms-refactoring
No longer depends on: 889737
Assignee: nobody → thills
Attached file pull request for patch (deleted) —
Replaced references to mozMobileConnection with mozMobileConnections in the telephony_helper.js and the calls_handler.js
Attachment #8423152 - Flags: review?(gsvelto)
Comment on attachment 8423152 [details] pull request for patch The patch looks good to me, thanks for your work! While looking at the code I noticed that this might actually need a follow-up. The code in the CallsHandler is picking the first SIM card's MCC for the SimplePhoneMatcher irrespective of how many SIMs are in the device: https://github.com/mozilla-b2g/gaia/blob/master/apps/callscreen/js/calls_handler.js#L19 Etienne, shouldn't this code become DSDS-aware and use the MCC of the current default SIM card? In case do we already have a bug for that?
Attachment #8423152 - Flags: review?(gsvelto) → review+
Flags: needinfo?(etienne)
(In reply to Gabriele Svelto [:gsvelto] from comment #6) > Comment on attachment 8423152 [details] > pull request for patch > > The patch looks good to me, thanks for your work! > > While looking at the code I noticed that this might actually need a > follow-up. The code in the CallsHandler is picking the first SIM card's MCC > for the SimplePhoneMatcher irrespective of how many SIMs are in the device: > > https://github.com/mozilla-b2g/gaia/blob/master/apps/callscreen/js/ > calls_handler.js#L19 > > Etienne, shouldn't this code become DSDS-aware and use the MCC of the > current default SIM card? In case do we already have a bug for that? In a perfect world the SimplePhoneMatcher should have an array of mcc since it's used to match incoming calls phone numbers and you can get them on both sims :) But yes a follow-up is definitely needed.
Flags: needinfo?(etienne)
Marking this as invalid. Wrong version of the device.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Sorry, wrong defect. Ignore that last change.
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Resolution: INVALID → ---
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Added the checkin-needed flag. There is a failing test due to an intermittent timeout issue. Please see the URL to the Travis build as we have retriggered.
Keywords: checkin-needed
Merged to gaia/master ec9f26124034d0f966a09c41290b1fdb1ce0a7fe https://github.com/mozilla-b2g/gaia/commit/ec9f26124034d0f966a09c41290b1fdb1ce0a7fe
Status: ASSIGNED → RESOLVED
Closed: 11 years ago11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
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: