From d92c430a2e2d7544b0dd2bc6e231f33d6f2bc791 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Fri, 3 Oct 2014 10:05:51 +0200 Subject: [PATCH] Bug 1065185 - Create content arrays rather than chrome arrays in DOM Apps. r=me --- dom/apps/Webapps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/apps/Webapps.js b/dom/apps/Webapps.js index 675317e1954f..700eca9c0c54 100644 --- a/dom/apps/Webapps.js +++ b/dom/apps/Webapps.js @@ -612,7 +612,7 @@ WebappsApplication.prototype = { case "Webapps:Connect:Return:OK": this.removeMessageListeners(["Webapps:Connect:Return:OK", "Webapps:Connect:Return:KO"]); - let messagePorts = []; + let messagePorts = new this._window.Array(); msg.messagePortIDs.forEach((aPortID) => { let port = new this._window.MozInterAppMessagePort(aPortID); messagePorts.push(port); @@ -626,7 +626,7 @@ WebappsApplication.prototype = { break; case "Webapps:GetConnections:Return:OK": this.removeMessageListeners(aMessage.name); - let connections = []; + let connections = new this._window.Array(); msg.connections.forEach((aConnection) => { let connection = new this._window.MozInterAppConnection(aConnection.keyword,