Closed Bug 743614 Opened 12 years ago Closed 12 years ago

B2G Wifi: Beef up error checking a little

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: mrbkap, Assigned: mrbkap)

References

Details

Attachments

(1 file)

Attached patch Proposed fixSplinter Review
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+
https://hg.mozilla.org/mozilla-central/rev/a3974cd83d6e
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: