Closed Bug 980387 Opened 12 years ago Closed 11 years ago

[meta] Retire mozMobileConnection

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gsvelto, Assigned: gsvelto)

References

Details

Attachments

(1 file)

As per bug 958733 comment 25, navigator.mozMobileConnection is history, we should retire all its uses from Gaia and ensure that unit-tests do not use it anymore too relying on the navigator.mozMobileConnections mock instead.
Depends on: 980391
Depends on: 980394
Depends on: 980395
Depends on: 980396
Depends on: 980398
Depends on: 980399
Depends on: 980402
This patch removes all the remaining uses of navigator.mozMobileConnection. Tim, tThe changes are in various places but I don't think it's worth chasing multiple reviews for the multiple bits so if you don't mind to r+ this we can get rid of this legacy.
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Attachment #8554247 - Flags: review?(timdream)
Comment on attachment 8554247 [details] [review] [PULL REQUEST] Remove all remaining uses of navigator.mozMobileConnection I think you should also remove the comment above.
Attachment #8554247 - Flags: review?(timdream) → review+
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) (please ni?) from comment #3) > I think you should also remove the comment above. Good point, I had missed them. I'll update the PR.
The change in tz_select.js is making integration tests break. I imagine this must be due to some mock implementing navigator.mozMobileConnection but not navigator.mozMobileConnections. That will require a little more investigation before I'm able to land this.
I had to do a minuscule adjustment to tz_select.js, this is the try run: https://treeherder.mozilla.org/#/jobs?repo=gaia-try&revision=b1ca2384798d Merged to gaia/master 1a51fdbe47b8a92a1df1d02b6a86cbac280d02e9 https://github.com/mozilla-b2g/gaia/commit/1a51fdbe47b8a92a1df1d02b6a86cbac280d02e9
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: