Closed Bug 1028533 Opened 7 years ago Closed 7 years ago

[JavaScript Error: "TypeError: hwSupportedTypes is undefined" {file:"apps/system/js/in telephony_settings.js"}] in _getDefaultPreferredNetworkType function

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: camel.aissani, Assigned: camel.aissani)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140608211622

Steps to reproduce:

Launch gaia with a firefox nightly build


Actual results:

Dev tools console shows a TypeError: hwSupportedTypes is undefined in apps/system/js/in telephony_settings.js in function _getDefaultPreferredNetworkType


Expected results:

No error in dev tools console
Summary: [JavaScript Error: "TypeError: hwSupportedTypes is undefined" {file:"apps/system/js/in telephony_settings.js}] in _getDefaultPreferredNetworkType function → [JavaScript Error: "TypeError: hwSupportedTypes is undefined" {file:"apps/system/js/in telephony_settings.js"}] in _getDefaultPreferredNetworkType function
Attached patch 1028533.patchSplinter Review
The connections are initialized with navigator.mozMobileConnections without attribute hwSupportedTypes.
I checked the attribute exists before to use it.
Attachment #8443909 - Flags: review?(21)
https://github.com/mozilla-b2g/gaia/commit/28af5cc66646d73c6175f4c18622d8ae8c357de3
Assignee: nobody → camel.aissani
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.