summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-05-28 11:46:54 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-05-28 11:46:54 -0400
commit2a36ae70f511d3eaf8594477934f640c6ff50c96 (patch)
tree6c71bbf5e4458e638df8a2ee130a806f47cd8ba8
parent13aca83acc15b8da8e2411d23912ba18275ab983 (diff)
downloadUXP-2a36ae70f511d3eaf8594477934f640c6ff50c96.tar
UXP-2a36ae70f511d3eaf8594477934f640c6ff50c96.tar.gz
UXP-2a36ae70f511d3eaf8594477934f640c6ff50c96.tar.lz
UXP-2a36ae70f511d3eaf8594477934f640c6ff50c96.tar.xz
UXP-2a36ae70f511d3eaf8594477934f640c6ff50c96.zip
[WebExAM] Follow up to 351cf2703
-rw-r--r--toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm b/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm
index 338b8c8bf..78b52d21a 100644
--- a/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm
+++ b/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm
@@ -452,10 +452,7 @@ function parseRDFManifest(aId, aUpdateKey, aRequest, aManifestData) {
* @throws if the update manifest is invalid in any way
*/
function parseJSONManifest(aId, aUpdateKey, aRequest, aManifestData) {
-#ifndef MOZ_PHOENIX
- throw Components.Exception("This application does not support JSON update manifests");
-#endif
-
+#ifdef MOZ_PHOENIX
if (aUpdateKey)
throw Components.Exception("Update keys are not supported for JSON update manifests");
@@ -560,6 +557,9 @@ function parseJSONManifest(aId, aUpdateKey, aRequest, aManifestData) {
results.push(result);
}
return results;
+#else
+ throw Components.Exception("This application does not support JSON update manifests");
+#endif
}
/**