Last Comment Bug 743614 - B2G Wifi: Beef up error checking a little
: B2G Wifi: Beef up error checking a little
Product: Core
Classification: Components
Component: DOM: Device Interfaces (show other bugs)
: Trunk
: ARM Gonk (Firefox OS)
-- normal (vote)
: mozilla14
Assigned To: Blake Kaplan (:mrbkap)
: Andrew Overholt [:overholt]
Depends on:
Blocks: b2g-wifi
  Show dependency treegraph
Reported: 2012-04-08 23:38 PDT by Blake Kaplan (:mrbkap)
Modified: 2012-04-13 01:39 PDT (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Proposed fix (2.24 KB, patch)
2012-04-08 23:38 PDT, Blake Kaplan (:mrbkap)
cjones.bugs: review+
Details | Diff | Splinter Review

Description User image Blake Kaplan (:mrbkap) 2012-04-08 23:38:47 PDT
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).
Comment 1 User image Blake Kaplan (:mrbkap) 2012-04-13 01:39:50 PDT

Note You need to log in before you can comment on or make changes to this bug.