Closed Bug 739234 Opened 12 years ago Closed 12 years ago

state[0] is undefined when initializing DOMWifiManager

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vingtetun, Assigned: mrbkap)

Details

Attachments

(1 file)

Content JS LOG at http://localhost/webapi.js:1143 in anonymous: [Exception... "'[JavaScript Error: "state[0] is undefined" {file: "file:///home/vivien/Devel/mozilla/b2g/desktop/build/dist/bin/components/DOMWifiManager.js" line: 61}]' when calling method: [nsIDOMGlobalPropertyInitializer::init]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: http://localhost/webapi.js :: <TOP_LEVEL> :: line 1139"  data: yes]

This error happens on Gaia when doing: 

if ('mozWifiManager' in navigator)
 return;
Attached patch Easy fixSplinter Review
Not very pretty, but it'll silence the warnings at least.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #609708 - Flags: review?(21)
https://hg.mozilla.org/mozilla-central/rev/7290c4f0a150
Status: ASSIGNED → RESOLVED
Closed: 12 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: