Closed Bug 1037276 Opened 11 years ago Closed 11 years ago

[Flame][Wifi] wps-timedout event doesn't match the enum ConnectionStatus defined in webidl

Categories

(Firefox OS Graveyard :: Wifi, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S6 (18july)

People

(Reporter: vchang, Assigned: vchang)

Details

(Whiteboard: [p=1])

Attachments

(1 file)

It causes below javascript error when failed to connect to the access point using WPS in Flame. E/GeckoConsole(14477): [JavaScript Error: "Return value of MozWifiConnection.status 'wps-timedout' is not a valid value for enumeration ConnectionStatus."] E/GeckoConsole(14477): [JavaScript Error: "NS_ERROR_UNEXPECTED: " {file: "app://system.gaiamobile.org/js/wifi.js" line: 221}]
Assignee: nobody → vchang
Attached patch Patch v1.0Splinter Review
Fixed the typo in webidl.
Attachment #8454201 - Flags: review?(chulee)
Whiteboard: [p=1]
Target Milestone: --- → 2.0 S6 (18july)
Comment on attachment 8454201 [details] [diff] [review] Patch v1.0 Review of attachment 8454201 [details] [diff] [review]: ----------------------------------------------------------------- Nice catch! But I think "wps-timeout" is correct, the typo is in DOMWifiManager.js[1]. [1] http://hg.mozilla.org/mozilla-central/file/e1a037c085d1/dom/wifi/DOMWifiManager.js#l363
Attachment #8454201 - Flags: review?(chulee) → review-
(In reply to Chuck Lee [:chucklee] from comment #2) > Comment on attachment 8454201 [details] [diff] [review] > Patch v1.0 > > Review of attachment 8454201 [details] [diff] [review]: > ----------------------------------------------------------------- > > Nice catch! > But I think "wps-timeout" is correct, the typo is in DOMWifiManager.js[1]. > > [1] > http://hg.mozilla.org/mozilla-central/file/e1a037c085d1/dom/wifi/ > DOMWifiManager.js#l363 So we should have a follow up bug for gaia?
Comment on attachment 8454201 [details] [diff] [review] Patch v1.0 I also saw some variables using "timedout" in gecko, so I am not sure which one is preferred. Modifying webidl seems to be less effort, but this needs to be reviewed by Blake.
Attachment #8454201 - Flags: review- → review?(mrbkap)
Attachment #8454201 - Flags: review?(mrbkap) → review+
Status: NEW → 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: