Commit d9b249f7 authored by Greg Tatum's avatar Greg Tatum
Browse files

Bug 1825349 - Skip content verification for translations attachments; r=nordzilla

parent 70644f9d
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -52,10 +52,11 @@ XPCOMUtils.defineLazyPreferenceGetter(
  "browser.translations.simulateUnsupportedEngine"
);

// Do the slow/safe thing of always verifying the signature when the data is
// loaded from the file system. This restriction could be eased in the future if it
// proves to be a performance problem, and the security risk is acceptable.
const VERIFY_SIGNATURES_FROM_FS = true;
// At this time the signatures of the files are not being checked when they are being
// loaded from disk. This signature check involves hitting the network, and translations
// are explicitly an offline-capable feature. See Bug 1827265 for re-enabling this
// check.
const VERIFY_SIGNATURES_FROM_FS = false;

/**
 * @typedef {import("../translations").TranslationModelRecord} TranslationModelRecord