Bug 1065185 - Create a content Array rather than a chrome Array in _convertWifiNetworks. r=chucklee
☠☠ backed out by 5c14c63b4c1a ☠ ☠
authorBobby Holley <bobbyholley@gmail.com>
Wed, 01 Oct 2014 15:25:01 +0200
changeset 208204 fbdb5bead63939509d4f2d920ead0ac67bdcec60
parent 208203 54d6077015dae167ca4f38ba2a2eee9cb6de6763
child 208205 7672d57acbadfd39f26d74b10ad86fbb6fe8833b
push id27580
push userkwierso@gmail.com
push dateWed, 01 Oct 2014 23:26:55 +0000
treeherderautoland@af6c928893c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschucklee
bugs1065185
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;