state[0] is undefined when initializing DOMWifiManager

RESOLVED FIXED

Status

()

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

People

(Reporter: vingtetun, Assigned: mrbkap)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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;
(Assignee)

Comment 1

5 years ago
Created attachment 609708 [details] [diff] [review]
Easy fix

Not very pretty, but it'll silence the warnings at least.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #609708 - Flags: review?(21)
Attachment #609708 - Flags: review?(21) → review+
https://hg.mozilla.org/mozilla-central/rev/7290c4f0a150
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.