diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-05-28 11:46:54 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-05-28 11:46:54 -0400 |
commit | fd460e7e1d3cb639eb3a4c89ae36cba094ab8f4d (patch) | |
tree | 6c71bbf5e4458e638df8a2ee130a806f47cd8ba8 /toolkit/mozapps | |
parent | 7601b592d3cc12089b1619702830e6ccda19b2d5 (diff) | |
download | uxp-fd460e7e1d3cb639eb3a4c89ae36cba094ab8f4d.tar.gz |
[WebExAM] Follow up to 351cf2703
Diffstat (limited to 'toolkit/mozapps')
-rw-r--r-- | toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm b/toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm index 338b8c8bfa..78b52d21ab 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 } /** |