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)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gsvelto, Assigned: thills, Mentored)
References
Details
(Whiteboard: [lang=javascript])
Attachments
(1 file)
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.
Reporter | ||
Updated•11 years ago
|
Whiteboard: [mentor=:gsvelto][lang=javascript]
Reporter | ||
Updated•11 years ago
|
Blocks: sms-refactoring
Comment 1•11 years ago
|
||
Hi Gabriele
I like to work on this.Can i get this assigned?
Thanks
Reporter | ||
Comment 2•11 years ago
|
||
(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
Reporter | ||
Comment 3•11 years ago
|
||
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.
Reporter | ||
Comment 4•11 years ago
|
||
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 | ||
Updated•11 years ago
|
Assignee: nobody → thills
Assignee | ||
Comment 5•11 years ago
|
||
Replaced references to mozMobileConnection with mozMobileConnections in the telephony_helper.js and the calls_handler.js
Assignee | ||
Updated•11 years ago
|
Attachment #8423152 -
Flags: review?(gsvelto)
Reporter | ||
Comment 6•11 years ago
|
||
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)
Comment 7•11 years ago
|
||
(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)
Assignee | ||
Comment 8•11 years ago
|
||
Marking this as invalid. Wrong version of the device.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 9•11 years ago
|
||
Sorry, wrong defect. Ignore that last change.
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Resolution: INVALID → ---
Reporter | ||
Updated•11 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Comment 10•11 years ago
|
||
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
Reporter | ||
Comment 11•11 years ago
|
||
Merged to gaia/master ec9f26124034d0f966a09c41290b1fdb1ce0a7fe
https://github.com/mozilla-b2g/gaia/commit/ec9f26124034d0f966a09c41290b1fdb1ce0a7fe
Status: ASSIGNED → RESOLVED
Closed: 11 years ago → 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Updated•10 years ago
|
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.
Description
•