mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 22:44:13 +00:00
Bug 876122 - Fix typos in webapps actor. r=fabrice
This commit is contained in:
parent
a94a6e394a
commit
f0a78b0111
@ -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" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user