Bug 876122 - Fix typos in webapps actor. r=fabrice

This commit is contained in:
Alexandre Poirot 2013-05-28 13:30:30 -04:00
parent 23835ca8cd
commit 05bd560f0a

View File

@ -128,7 +128,7 @@ WebappsActor.prototype = {
let appType = self._getAppType(aManifest.type);
// In production builds, don't allow installation of certified apps.
#ifdef MOZ_OFFICIAL
#ifdef MOZ_OFFICIAL_BRANDING
if (appType == Ci.nsIPrincipal.APP_STATUS_CERTIFIED) {
self._sendError("Installing certified apps is not allowed.", aId);
return;
@ -210,7 +210,7 @@ WebappsActor.prototype = {
let appType = self._getAppType(aManifest.type);
// In production builds, don't allow installation of certified apps.
#ifdef MOZ_OFFICIAL
#ifdef MOZ_OFFICIAL_BRANDING
if (appType == Ci.nsIPrincipal.APP_STATUS_CERTIFIED) {
self._sendError("Installing certified apps is not allowed.", aId);
return;
@ -286,7 +286,7 @@ WebappsActor.prototype = {
if (missing) {
try {
aDir.remove(true);
appDir.remove(true);
} catch(e) {}
return { error: "badParameterType",
message: "hosted app file is missing" }