From 2a36ae70f511d3eaf8594477934f640c6ff50c96 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 28 May 2018 11:46:54 -0400 Subject: [WebExAM] Follow up to 351cf2703 --- toolkit/mozapps/webextensions/internal/AddonUpdateChecker.jsm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toolkit') 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 } /** -- cgit v1.2.3