Bug 1065185 - Create a content Array rather than a chrome Array in _convertWifiNetworks. r=chucklee
authorBobby Holley <bobbyholley@gmail.com>
Fri, 03 Oct 2014 10:05:51 +0200
changeset 208543 674d025b67e946580a0f602a3be8ede799c0d5fb
parent 208542 2bf5d8b7d3cbdab894449291273b49bde3c133b7
child 208544 457b4fd51bb28b243b45913085eaa84e2f7e7aeb
push idunknown
push userunknown
push dateunknown
reviewerschucklee
bugs1065185
milestone35.0a1
Bug 1065185 - Create a content Array rather than a chrome Array in _convertWifiNetworks. r=chucklee
dom/wifi/DOMWifiManager.js
--- a/dom/wifi/DOMWifiManager.js
+++ b/dom/wifi/DOMWifiManager.js
@@ -155,17 +155,17 @@ DOMWifiManager.prototype = {
   },
 
   _convertWifiNetwork: function(aNetwork) {
     let network = aNetwork ? new this._window.MozWifiNetwork(aNetwork) : null;
     return network;
   },
 
   _convertWifiNetworks: function(aNetworks) {
-    let networks = [];
+    let networks = new this._window.Array();
     for (let i in aNetworks) {
       networks.push(this._convertWifiNetwork(aNetworks[i]));
     }
     return networks;
   },
 
   _convertConnection: function(aConn) {
     let conn = aConn ? new MozWifiConnection(aConn) : null;