Backed out changeset 58f71d9d0de7 (bug 1191579) for various webapp/webide test failures across different suites.

This commit is contained in:
Ryan VanderMeulen 2015-08-06 12:25:54 -04:00
parent 15d3f22d2d
commit bddf09f679

View File

@ -4335,6 +4335,27 @@ this.DOMApplicationRegistry = {
});
},
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 {