Backed out changeset 58f71d9d0de7 (bug 1191579) for various webapp/webide test failures across different suites.
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 06 Aug 2015 12:25:54 -0400
changeset 288227 f3ffc7e9ed6217fd7e4303725a406c8f263f8502
parent 288226 566ad956305dfbdff62561a379d37813d40c0b82
child 288228 03e3d77d1b6b213c44102cff4d0fd7ca6dda760d
child 288275 e2557f6b11669d7f84fbb2f630b88b433ef20fab
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1191579
milestone42.0a1
backs out58f71d9d0de7730c76a74b91e715cb0b09c10ba0
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
Backed out changeset 58f71d9d0de7 (bug 1191579) for various webapp/webide test failures across different suites.
dom/apps/Webapps.jsm
--- a/dom/apps/Webapps.jsm
+++ b/dom/apps/Webapps.jsm
@@ -4330,16 +4330,37 @@ this.DOMApplicationRegistry = {
       }
       loadIcon(url);
     }).catch(() => {
       sendError("FETCH_ICON_FAILED");
       return;
     });
   },
 
+  getAll: function(aCallback) {
+    debug("getAll");
+    let apps = [];
+    let tmp = [];
+
+    for (let id in this.webapps) {
+      let app = AppsUtils.cloneAppObject(this.webapps[id]);
+      if (!this._isLaunchable(app))
+        continue;
+
+      apps.push(app);
+      tmp.push({ id: id });
+    }
+
+    this._readManifests(tmp).then((aResult) => {
+      for (let i = 0; i < aResult.length; i++)
+        apps[i].manifest = aResult[i].manifest;
+      aCallback(apps);
+    });
+  },
+
   /* Check if |data| is actually a receipt */
   isReceipt: function(data) {
     try {
       // The receipt data shouldn't be too big (allow up to 1 MiB of data)
       const MAX_RECEIPT_SIZE = 1048576;
 
       if (data.length > MAX_RECEIPT_SIZE) {
         return "RECEIPT_TOO_BIG";