The default bug view has changed. See this FAQ.

B2G Wifi: Beef up error checking a little

RESOLVED FIXED in mozilla14

Status

()

Core
DOM: Device Interfaces
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: mrbkap, Assigned: mrbkap)

Tracking

(Blocks: 1 bug)

Trunk
mozilla14
ARM
Gonk (Firefox OS)
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
Created attachment 613238 [details] [diff] [review]
Proposed fix

Right now, calling wifi functions on a disabled wifi manager will try to do something but fail in random places. We should fail earlier and give a better error message.

Relatedly we don't handle errors in the case of onscanresultsavailable (which can happen if we turn wifi off between the notification and when we call getScanResults).
Attachment #613238 - Flags: review?(jones.chris.g)
Attachment #613238 - Flags: review?(jones.chris.g) → review+
(Assignee)

Comment 1

5 years ago
https://hg.mozilla.org/mozilla-central/rev/a3974cd83d6e
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in before you can comment on or make changes to this bug.